[Python-checkins] bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)

Shantanu webhook-mailer at python.org
Tue Mar 17 17:43:25 EDT 2020


https://github.com/python/cpython/commit/d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc
commit: d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc
branch: master
author: Shantanu <hauntsaninja at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-17T23:43:20+02:00
summary:

bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)

files:
A Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst
M Lib/tempfile.py

diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 448163f04380d..b27165bb0f203 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -749,10 +749,6 @@ def readlines(self, *args):
     def seek(self, *args):
         self._file.seek(*args)
 
-    @property
-    def softspace(self):
-        return self._file.softspace
-
     def tell(self):
         return self._file.tell()
 
diff --git a/Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst b/Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst
new file mode 100644
index 0000000000000..5269ce188cd23
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst
@@ -0,0 +1 @@
+Remove :meth:`tempfile.SpooledTemporaryFile.softspace` as files no longer have the ``softspace`` attribute in Python 3. Patch by Shantanu.



More information about the Python-checkins mailing list