summaryrefslogtreecommitdiff
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
parentd1f4b3c68aec092051392b64e993db3ce0e5acbf (diff)
Refs #27753 -- Removed django.utils._os.abspathu(), upath(), and npath().
-rw-r--r--django/utils/_os.py16
-rw-r--r--docs/releases/3.0.txt5
2 files changed, 5 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):
"""
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index 7801db12f2..763c3ec5c0 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -257,6 +257,11 @@ Django 3.0, we're removing these APIs at this time.
* ``django.utils.decorators.available_attrs()`` - This function returns
``functools.WRAPPER_ASSIGNMENTS``.
+* ``django.utils._os.abspathu()`` - Alias of :func:`os.path.abspath`.
+
+* ``django.utils._os.upath()`` and ``npath()`` - These functions do nothing on
+ Python 3.
+
Miscellaneous
-------------