Skip to content

Commit

Permalink
Merge pull request #27 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix syntax warning over comparison of literals using is.
  • Loading branch information
coolbho3k authored Nov 2, 2021
2 parents 2b516c8 + 3bd0035 commit 133692b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manuf/manuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def update(self, manuf_url=None, wfa_url=None, manuf_name=None, refresh=True):
raise URLError("Failed downloading OUI database")

# Parse the response
if response.code is 200:
if response.code == 200:
with open(manuf_name, "wb") as write_file:
write_file.write(response.read())
if refresh:
Expand All @@ -166,7 +166,7 @@ def update(self, manuf_url=None, wfa_url=None, manuf_name=None, refresh=True):
raise URLError("Failed downloading WFA database")

# Parse the response
if response.code is 200:
if response.code == 200:
with open(manuf_name, "ab") as write_file:
write_file.write(response.read())
if refresh:
Expand Down

0 comments on commit 133692b

Please sign in to comment.