summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShantanu <hauntsaninja@users.noreply.github.com>2020-03-17 21:43:20 (GMT)
committerGitHub <noreply@github.com>2020-03-17 21:43:20 (GMT)
commitd469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc (patch)
tree216b07e48576da3df0db4bda9299ab5b4c7e5968
parent6b97598fb66a08d0f36e4d73bffea5c1b17740d4 (diff)
downloadcpython-d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc.zip
cpython-d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc.tar.gz
cpython-d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc.tar.bz2
bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)
-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.