]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)
authorShantanu <hauntsaninja@users.noreply.github.com>
Tue, 17 Mar 2020 21:43:20 +0000 (14:43 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 21:43:20 +0000 (23:43 +0200)
Lib/tempfile.py
Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst [new file with mode: 0644]

index 448163f04380d575213fa888634f24750357f7df..b27165bb0f203e85c5a9688a68f30dc0e61af8dc 100644 (file)
@@ -749,10 +749,6 @@ class SpooledTemporaryFile:
     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 (file)
index 0000000..5269ce1
--- /dev/null
@@ -0,0 +1 @@
+Remove :meth:`tempfile.SpooledTemporaryFile.softspace` as files no longer have the ``softspace`` attribute in Python 3. Patch by Shantanu.