summaryrefslogtreecommitdiff
path: root/django/utils/_os.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 19:50:30 -0500
committerTim Graham <timograham@gmail.com>2019-02-05 12:57:11 -0500
commitefe28d3f566a00e76ae589a3f93be8079a638ca8 (patch)
treef9e938306afb0576dfa40db1cd58cbaf3f1ac2d0 /django/utils/_os.py
parentd1f4b3c68aec092051392b64e993db3ce0e5acbf (diff)
Refs #27753 -- Removed django.utils._os.abspathu(), upath(), and npath().
Diffstat (limited to 'django/utils/_os.py')
-rw-r--r--django/utils/_os.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/django/utils/_os.py b/django/utils/_os.py
index 81ab8e6e76..c901d584c1 100644
--- a/django/utils/_os.py
+++ b/django/utils/_os.py
@@ -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):
"""