diff options
| author | Guido van Rossum <guido@python.org> | 2007-03-18 03:36:28 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-03-18 03:36:28 +0000 |
| commit | bb09b212505a70a2b9f43ee2df6dd3ddb09776c1 (patch) | |
| tree | 263c780a8f0b23db50b71e17babee588b1f4ec2c | |
| parent | c819dea40d58f84c61d7d1129d340700e20b9d74 (diff) | |
| download | cpython-git-bb09b212505a70a2b9f43ee2df6dd3ddb09776c1.tar.gz | |
Bug 1679498: unset variable 'bs'.
| -rw-r--r-- | Lib/io.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |
