forked from orbit-oss/flask
Fixed various issues on the Python 3 port
This commit is contained in:
parent
8aaf302586
commit
abc1505196
3 changed files with 36 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue