diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 448163f0438..b27165bb0f2 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -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 index 00000000000..5269ce188cd --- /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.