##// END OF EJS Templates
Don't use __qualname__ on Python 2, as it does not exists....
Matthias Bussonnier -
Show More
@@ -187,8 +187,12 b' class ExecutionResult(object):'
187 raise self.error_in_exec
187 raise self.error_in_exec
188
188
189 def __repr__(self):
189 def __repr__(self):
190 if sys.version_info > (3,):
191 name = self.__class__.__qualname__
192 else:
193 name = self.__class__.__name__
190 return '<%s object at %x, execution_count=%s error_before_exec=%s error_in_exec=%s result=%s>' %\
194 return '<%s object at %x, execution_count=%s error_before_exec=%s error_in_exec=%s result=%s>' %\
191 (self.__class__.__qualname__, id(self), self.execution_count, self.error_before_exec, self.error_in_exec, repr(self.result))
195 (name, id(self), self.execution_count, self.error_before_exec, self.error_in_exec, repr(self.result))
192
196
193
197
194 class InteractiveShell(SingletonConfigurable):
198 class InteractiveShell(SingletonConfigurable):
General Comments 0
You need to be logged in to leave comments. Login now