summaryrefslogtreecommitdiff
path: root/django/utils/text.py
diff options
context:
space:
mode:
authorVytis Banaitis <vytis.banaitis@gmail.com>2017-01-20 23:04:05 +0200
committerTim Graham <timograham@gmail.com>2017-01-26 08:19:27 -0500
commitd1bab24e0144d14513a1411503c95ececb425188 (patch)
tree187452bf7b66a9600abc47570ccae22e6d539ede /django/utils/text.py
parent888c1e9bfe49135d049cbdcbbb0f2e97a1a0a1f5 (diff)
downloaddjango-d1bab24e0144d14513a1411503c95ececb425188.tar.gz
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
Diffstat (limited to 'django/utils/text.py')
-rw-r--r--django/utils/text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index 70f6b60777..0feeda7416 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -230,7 +230,7 @@ def get_valid_filename(s):
"""
Returns the given string converted to a string that can be used for a clean
filename. Specifically, leading and trailing spaces are removed; other
- spaces are converted to underscores; and anything that is not a unicode
+ spaces are converted to underscores; and anything that is not an
alphanumeric, dash, underscore, or dot, is removed.
>>> get_valid_filename("john's portrait in 2004.jpg")
'johns_portrait_in_2004.jpg'