Mercurial > ~astiob > upreckon > hgweb
diff compat.py @ 116:e17ae4ccbc58 2.00
Removed code omitted in 2.00 releases from the 2.00 branch
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 08 Apr 2011 20:22:38 +0300 |
parents | cd347cfca272 |
children |
line wrap: on
line diff
--- a/compat.py Fri Apr 08 20:05:51 2011 +0300 +++ b/compat.py Fri Apr 08 20:22:38 2011 +0300 @@ -130,16 +130,6 @@ _path.relpath = relpath -def import_urllib(): - try: - # Python 3 - import urllib.request - return urllib.request, lambda url: urllib.request.urlopen(url).read().decode('ascii') - except ImportError: - # Python 2 - import urllib - return urllib, lambda url: urllib.urlopen(url).read() - try: from abc import ABCMeta, abstractmethod except ImportError: