mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 04:27:06 +08:00
Some python 2.7 (and 3.3) compatibility improvements.
This commit is contained in:
1 parent
609965d07c
commit
9245181a8c
6 files changed
+21
-18
No files matched your search
@@ -8,7 +8,7 @@ import os
|
||||
import inspect
|
||||
import types
|
||||
|
||||
from jedi._compatibility import is_py3, builtins, unicode
|
||||
from jedi._compatibility import is_py3, builtins, unicode, is_py34
|
||||
from jedi.parser import ParserWithRecovery, load_grammar
|
||||
from jedi.parser import tree as pt
|
||||
from jedi.evaluate.helpers import FakeName
|
||||
@@ -36,10 +36,11 @@ NOT_CLASS_TYPES = (
|
||||
|
||||
if is_py3:
|
||||
NOT_CLASS_TYPES += (
|
||||
types.DynamicClassAttribute,
|
||||
types.MappingProxyType,
|
||||
types.SimpleNamespace
|
||||
)
|
||||
if is_py34:
|
||||
NOT_CLASS_TYPES += (types.DynamicClassAttribute,)
|
||||
|
||||
|
||||
def _load_faked_module(module):
|
||||
|
||||
Reference in new issue
Block a user