mirror of https://github.com/python/cpython
gh-93991: Use boolean instead of 0/1 for condition check (GH-93992)
# gh-93991: Use boolean instead of 0/1 for condition check
This commit is contained in:
parent
27b9894033
commit
476d302508
|
@ -157,17 +157,17 @@ class dircmp:
|
|||
a_path = os.path.join(self.left, x)
|
||||
b_path = os.path.join(self.right, x)
|
||||
|
||||
ok = 1
|
||||
ok = True
|
||||
try:
|
||||
a_stat = os.stat(a_path)
|
||||
except OSError:
|
||||
# print('Can\'t stat', a_path, ':', why.args[1])
|
||||
ok = 0
|
||||
ok = False
|
||||
try:
|
||||
b_stat = os.stat(b_path)
|
||||
except OSError:
|
||||
# print('Can\'t stat', b_path, ':', why.args[1])
|
||||
ok = 0
|
||||
ok = False
|
||||
|
||||
if ok:
|
||||
a_type = stat.S_IFMT(a_stat.st_mode)
|
||||
|
|
Loading…
Reference in New Issue