Fixed various issues on the Python 3 port

This commit is contained in:
Armin Ronacher 2013-05-30 15:07:18 +01:00
parent 8aaf302586
commit abc1505196
3 changed files with 36 additions and 10 deletions

View file

@ -47,8 +47,6 @@ if not PY2:
encode_filename = _identity
get_next = lambda x: x.__next__
from urllib.parse import urlparse
else:
unichr = unichr
text_type = unicode
@ -86,8 +84,6 @@ else:
return filename.encode('utf-8')
return filename
from urlparse import urlparse
def with_metaclass(meta, *bases):
# This requires a bit of explanation: the basic idea is to make a