mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
More attacking E302 violators
This commit is contained in:
@@ -34,6 +34,7 @@ else:
|
||||
path = join(os.getcwdu(), path)
|
||||
return normpath(path)
|
||||
|
||||
|
||||
def upath(path):
|
||||
"""
|
||||
Always return a unicode path.
|
||||
@@ -42,6 +43,7 @@ def upath(path):
|
||||
return path.decode(fs_encoding)
|
||||
return path
|
||||
|
||||
|
||||
def npath(path):
|
||||
"""
|
||||
Always return a native path, that is unicode on Python 3 and bytestring on
|
||||
|
||||
Reference in New Issue
Block a user