mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Use "is" when comparing types
This commit is contained in:
parent
24a19e5b37
commit
15930be644
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user