1
0
forked from VimPlug/jedi

fixed property not found bug with builtins + cleaning

This commit is contained in:
David Halter
2012-06-24 18:47:57 +02:00
parent 548af3cc86
commit 3650e0ee64
5 changed files with 27 additions and 60 deletions
+4 -4
View File
@@ -43,9 +43,9 @@ class staticmethod():
class classmethod():
def __init__(self, func):
self.func = func
self._func = func
def __get__(self, obj, cls):
def method(*args, **kwargs):
self.func(cls, *args, **kwargs)
return method
def _method(*args, **kwargs):
self._func(cls, *args, **kwargs)
return _method