1
0
forked from VimPlug/jedi

Rewrite the next function.

This commit is contained in:
Dave Halter
2016-12-03 02:54:09 +01:00
parent da1a163da7
commit 7607db801f
4 changed files with 22 additions and 12 deletions

View File

@@ -123,7 +123,7 @@ def has_builtin_methods(cls):
def register_builtin_method(method_name, python_version_match=None):
def wrapper(func):
if python_version_match and python_version_match + int(is_py3) == 3:
if python_version_match and python_version_match == 2 + int(is_py3):
# Some functions do only apply to certain versions.
return func
dct = func.__dict__.setdefault('registered_builtin_methods', {})