Utilities/py3flakes/checker.py

changeset 428
58405c24aa09
parent 421
c32c27fd0794
child 688
b4ea6261967a
equal deleted inserted replaced
427:6af5d12cfecb 428:58405c24aa09
102 Class defining the scope base class. 102 Class defining the scope base class.
103 """ 103 """
104 importStarred = False # set to True when import * is found 104 importStarred = False # set to True when import * is found
105 105
106 def __repr__(self): 106 def __repr__(self):
107 return '<%s at 0x%x %s>' % (self.__class__.__name__, id(self), dict.__repr__(self)) 107 return '<{0} at 0x{1:x} {2}>'.format(
108 self.__class__.__name__, id(self), dict.__repr__(self))
108 109
109 def __init__(self): 110 def __init__(self):
110 super(Scope, self).__init__() 111 super(Scope, self).__init__()
111 112
112 class ClassScope(Scope): 113 class ClassScope(Scope):

eric ide

mercurial