aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2016-06-29 10:22:12 +0200
committerVictor Stinner <vstinner@redhat.com>2016-06-29 10:22:12 +0200
commit4720c481c62d5cc0a40dd212a32c641125be8e9c (patch)
treed2f5a20d2c770616daf19af4209ce02da5dd87a2 /setuptools/command/sdist.py
parentebf30b69931a41ab4ff709a38bd855b5777036d3 (diff)
downloadexternal_python_setuptools-4720c481c62d5cc0a40dd212a32c641125be8e9c.tar.gz
external_python_setuptools-4720c481c62d5cc0a40dd212a32c641125be8e9c.tar.bz2
external_python_setuptools-4720c481c62d5cc0a40dd212a32c641125be8e9c.zip
Don't use deprecated 'U' flag to read manifest
The universal newlines mode ('U' flag) is deprecated since Python 3.4. It only replaces "\r\n" with "\n", but it doesn't split lines at "\r" (Mac newline). In practice, the flag was useless, the sdist.read_manifest() method already uses line.strip() and so removes newline characters.
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 6640d4e3..f200b946 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -179,7 +179,7 @@ class sdist(orig.sdist):
distribution.
"""
log.info("reading manifest file '%s'", self.manifest)
- manifest = open(self.manifest, 'rbU')
+ manifest = open(self.manifest, 'rb')
for line in manifest:
# The manifest must contain UTF-8. See #303.
if six.PY3: