From d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc Mon Sep 17 00:00:00 2001 From: Shantanu Date: Tue, 17 Mar 2020 14:43:20 -0700 Subject: bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599) --- Lib/tempfile.py | 4 ---- Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 448163f..b27165b 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 0000000..5269ce1 --- /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. -- cgit v0.12