summaryrefslogtreecommitdiff
path: root/django/core/files/temp.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-21 20:02:00 -0500
committerGitHub <noreply@github.com>2017-01-21 20:02:00 -0500
commitd170c63351944fd91b2206d10f89e7ff75b53b76 (patch)
treee2be66471ab071fa0ce75097d66650b650c53853 /django/core/files/temp.py
parentc22212220a7900173358a1f16179dcfc9e03de78 (diff)
Refs #23919 -- Removed misc references to Python 2.
Diffstat (limited to 'django/core/files/temp.py')
-rw-r--r--django/core/files/temp.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/django/core/files/temp.py b/django/core/files/temp.py
index f5aea1a9a8..d5c56a0ad0 100644
--- a/django/core/files/temp.py
+++ b/django/core/files/temp.py
@@ -9,8 +9,8 @@ if the same flag is not provided [1][2]. Note that this does not address the
more general issue of opening a file for writing and reading in multiple
processes in a manner that works across platforms.
-Also note that the custom version of NamedTemporaryFile does not support the
-full range of keyword arguments available in Python 2.6+ and 3.0+.
+The custom version of NamedTemporaryFile doesn't support the same keyword
+arguments available in tempfile.NamedTemporaryFile.
1: https://mail.python.org/pipermail/python-list/2005-December/336957.html
2: http://bugs.python.org/issue14243
@@ -30,10 +30,9 @@ if os.name == 'nt':
Temporary file object constructor that supports reopening of the
temporary file in Windows.
- Note that unlike tempfile.NamedTemporaryFile from the standard library,
- __init__() does not support the 'delete' keyword argument in
- Python 2.6+, or the 'delete', 'buffering', 'encoding', or 'newline'
- keyword arguments in Python 3.0+.
+ Unlike tempfile.NamedTemporaryFile from the standard library,
+ __init__() doesn't support the 'delete', 'buffering', 'encoding', or
+ 'newline' keyword arguments.
"""
def __init__(self, mode='w+b', bufsize=-1, suffix='', prefix='', dir=None):
fd, name = tempfile.mkstemp(suffix=suffix, prefix=prefix, dir=dir)