Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb09b21

Browse files
committed
Bug 1679498: unset variable 'bs'.
1 parent c819dea commit bb09b21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def open(filename, mode="r", buffering=None, *, encoding=None):
9191
try:
9292
bs = os.fstat(raw.fileno()).st_blksize
9393
except (os.error, AttributeError):
94+
pass
95+
else:
9496
if bs > 1:
9597
buffering = bs
9698
if buffering < 0:

0 commit comments

Comments
 (0)