summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-03-18 03:36:28 (GMT)
committerGuido van Rossum <guido@python.org>2007-03-18 03:36:28 (GMT)
commitbb09b212505a70a2b9f43ee2df6dd3ddb09776c1 (patch)
tree263c780a8f0b23db50b71e17babee588b1f4ec2c /Lib/io.py
parentc819dea40d58f84c61d7d1129d340700e20b9d74 (diff)
downloadcpython-bb09b212505a70a2b9f43ee2df6dd3ddb09776c1.zip
cpython-bb09b212505a70a2b9f43ee2df6dd3ddb09776c1.tar.gz
cpython-bb09b212505a70a2b9f43ee2df6dd3ddb09776c1.tar.bz2
Bug 1679498: unset variable 'bs'.
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/io.py b/Lib/io.py
index e4e6759..59c4b06 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -91,6 +91,8 @@ def open(filename, mode="r", buffering=None, *, encoding=None):
try:
bs = os.fstat(raw.fileno()).st_blksize
except (os.error, AttributeError):
+ pass
+ else:
if bs > 1:
buffering = bs
if buffering < 0: