summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-04-17 15:56:35 +0900
committerGitHub <noreply@github.com>2020-04-17 15:56:35 +0900
commit485e715cb1ff92bc9882cd51ec32589f9cb30503 (patch)
tree55e3438c85d968dc72737b498960fec39ebf92bc /Lib/tempfile.py
parentbf1a81258c0ecc8b52b9dcc53321c066b3ed4a67 (diff)
downloadcpython-git-485e715cb1ff92bc9882cd51ec32589f9cb30503.tar.gz
bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)
It has not returned the file position after the seek.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index ed15c0fd1f..ba04be8f90 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -738,7 +738,7 @@ class SpooledTemporaryFile:
return self._file.readlines(*args)
def seek(self, *args):
- self._file.seek(*args)
+ return self._file.seek(*args)
def tell(self):
return self._file.tell()