mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Bug 1679498: unset variable 'bs'.
This commit is contained in:
parent
c819dea40d
commit
bb09b21250
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ def open(filename, mode="r", buffering=None, *, encoding=None):
|
||||||
try:
|
try:
|
||||||
bs = os.fstat(raw.fileno()).st_blksize
|
bs = os.fstat(raw.fileno()).st_blksize
|
||||||
except (os.error, AttributeError):
|
except (os.error, AttributeError):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if bs > 1:
|
if bs > 1:
|
||||||
buffering = bs
|
buffering = bs
|
||||||
if buffering < 0:
|
if buffering < 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue