mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
No need for types, use isinstance
This commit is contained in:
parent
f9232678ae
commit
d752f7d8e8
3 changed files with 6 additions and 9 deletions
|
@ -3,7 +3,6 @@
|
|||
import dis
|
||||
import new
|
||||
import sys
|
||||
import types
|
||||
|
||||
from compiler import misc
|
||||
from compiler.consts \
|
||||
|
@ -641,7 +640,7 @@ def getArgCount(args):
|
|||
|
||||
def twobyte(val):
|
||||
"""Convert an int argument into high and low bytes"""
|
||||
assert type(val) == types.IntType
|
||||
assert isinstance(val, int)
|
||||
return divmod(val, 256)
|
||||
|
||||
class LineAddrTable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue