Skip to content

Commit

Permalink
Fix syntax warning over comparison of literals using is.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Nov 4, 2020
1 parent a910f1f commit 3bd0035
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 3bd0035

Please sign in to comment.