summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/tempfile.py4
-rw-r--r--Misc/NEWS.d/next/Library/2020-02-21-22-35-57.bpo-39719.2jLy1C.rst1
2 files changed, 1 insertions, 4 deletions
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.