forked from srusskih/SublimeJEDI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjedi_0.13.x.patch
More file actions
38 lines (31 loc) · 1.4 KB
/
jedi_0.13.x.patch
File metadata and controls
38 lines (31 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git dependencies/jedi/_compatibility.py dependencies/jedi/_compatibility.py
index 9b5edc8..81b844a 100644
--- dependencies/jedi/_compatibility.py
+++ dependencies/jedi/_compatibility.py
@@ -150,6 +150,7 @@ def find_module_pre_py34(string, path=None, full_name=None, is_global_search=Tru
find_module = find_module_py34 if is_py3 else find_module_pre_py34
+find_module = find_module_py33 if py_version == 33 else find_module
find_module.__doc__ = """
Provides information about a module.
diff --git dependencies/jedi/evaluate/compiled/access.py dependencies/jedi/evaluate/compiled/access.py
index ab1d354..7fd5811 100644
--- dependencies/jedi/evaluate/compiled/access.py
+++ dependencies/jedi/evaluate/compiled/access.py
@@ -5,7 +5,7 @@ from textwrap import dedent
import operator as op
from collections import namedtuple
-from jedi._compatibility import unicode, is_py3, builtins, \
+from jedi._compatibility import unicode, is_py3, py_version, builtins, \
py_version, force_unicode, print_to_stderr
from jedi.evaluate.compiled.getattr_static import getattr_static
@@ -32,9 +32,11 @@ if is_py3:
NOT_CLASS_TYPES += (
types.MappingProxyType,
types.SimpleNamespace,
- types.DynamicClassAttribute,
)
+ if not py_version == 33:
+ NOT_CLASS_TYPES += (types.DynamicClassAttribute,)
+
# Those types don't exist in typing.
MethodDescriptorType = type(str.replace)