diff options
Diffstat (limited to 'Lib/dis.py')
-rw-r--r-- | Lib/dis.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/dis.py b/Lib/dis.py index 35ae595621..5aa09c95b6 100644 --- a/Lib/dis.py +++ b/Lib/dis.py @@ -6,7 +6,8 @@ import types from opcode import * from opcode import __all__ as _opcodes_all -__all__ = ["dis","disassemble","distb","disco"] + _opcodes_all +__all__ = ["dis", "disassemble", "distb", "disco", + "findlinestarts", "findlabels"] + _opcodes_all del _opcodes_all _have_code = (types.MethodType, types.FunctionType, types.CodeType, @@ -21,7 +22,7 @@ def dis(x=None): if x is None: distb() return - if type(x) is types.InstanceType: + if isinstance(x, types.InstanceType): x = x.__class__ if hasattr(x, 'im_func'): x = x.im_func |