Skip to content

Commit

Permalink
pythongh-93991: Changed condition check to boolean instream of 0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
aramhov96 committed Jun 19, 2022
1 parent 27b9894 commit 41a0b92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/filecmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,17 @@ def phase2(self): # Distinguish files, directories, funnies
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)
Expand Down

0 comments on commit 41a0b92

Please sign in to comment.