##// END OF EJS Templates
demandload: give better diagnostic for call of an unloaded module
Matt Mackall -
r5639:7dd5cf9d default
parent child Browse files
Show More
@@ -67,7 +67,7 class _demandmod(object):
67 return "<proxied module '%s'>" % self._data[0]
67 return "<proxied module '%s'>" % self._data[0]
68 return "<unloaded module '%s'>" % self._data[0]
68 return "<unloaded module '%s'>" % self._data[0]
69 def __call__(self, *args, **kwargs):
69 def __call__(self, *args, **kwargs):
70 raise TypeError("'unloaded module' object is not callable")
70 raise TypeError("%s object is not callable" % repr(self))
71 def __getattribute__(self, attr):
71 def __getattribute__(self, attr):
72 if attr in ('_data', '_extend', '_load', '_module'):
72 if attr in ('_data', '_extend', '_load', '_module'):
73 return object.__getattribute__(self, attr)
73 return object.__getattribute__(self, attr)
General Comments 0
You need to be logged in to leave comments. Login now