mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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:
|
||||
bs = os.fstat(raw.fileno()).st_blksize
|
||||
except (os.error, AttributeError):
|
||||
pass
|
||||
else:
|
||||
if bs > 1:
|
||||
buffering = bs
|
||||
if buffering < 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue