Skip to content

Commit

Permalink
Use "is" when comparing types
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 7, 2023
1 parent 24a19e5 commit 15930be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageMath.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def eval(expression, _dict={}, **kw):

def scan(code):
for const in code.co_consts:
if type(const) == type(compiled_code):
if type(const) is type(compiled_code):
scan(const)

for name in code.co_names:
Expand Down

0 comments on commit 15930be

Please sign in to comment.