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): |