mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
Refs #27753 -- Removed django.utils._os.abspathu(), upath(), and npath().
This commit is contained in:
@@ -4,22 +4,6 @@ from os.path import abspath, dirname, join, normcase, sep
|
||||
|
||||
from django.core.exceptions import SuspiciousFileOperation
|
||||
|
||||
# For backwards-compatibility in Django 2.0
|
||||
abspathu = abspath
|
||||
|
||||
|
||||
def upath(path):
|
||||
"""Always return a unicode path (did something for Python 2)."""
|
||||
return path
|
||||
|
||||
|
||||
def npath(path):
|
||||
"""
|
||||
Always return a native path, that is unicode on Python 3 and bytestring on
|
||||
Python 2. Noop for Python 3.
|
||||
"""
|
||||
return path
|
||||
|
||||
|
||||
def safe_join(base, *paths):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user