syntastic sugar

This commit is contained in:
Dave Halter
2014-03-13 10:39:18 +01:00
parent 8b176e34f2
commit c71247e9c9
+2 -4
View File
@@ -370,10 +370,8 @@ class Function(use_metaclass(CachedMetaClass, pr.IsScope)):
We just ignore the decorator here, because sometimes decorators are We just ignore the decorator here, because sometimes decorators are
just really complicated and Jedi cannot understand them. just really complicated and Jedi cannot understand them.
""" """
decorated_func = self._decorated_func() return self._decorated_func() \
if decorated_func is None: or Function(self._evaluator, self.base_func, True)
return Function(self._evaluator, self.base_func, True)
return decorated_func
def get_magic_function_names(self): def get_magic_function_names(self):
return compiled.magic_function_class.get_defined_names() return compiled.magic_function_class.get_defined_names()