mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-03 13:46:55 +08:00
use tokenizer instead of tokenize in all modules
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
import sys
|
import sys
|
||||||
import contextlib
|
import contextlib
|
||||||
import functools
|
import functools
|
||||||
import tokenize
|
import tokenizer as tokenize
|
||||||
|
|
||||||
from jedi._compatibility import next, reraise
|
from jedi._compatibility import next, reraise
|
||||||
from jedi import debug
|
from jedi import debug
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ Apart from those classes there's a ``sys.path`` fetching function, as well as
|
|||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import tokenize
|
import tokenizer as tokenize
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ complexity of the ``Parser`` (there's another parser sitting inside
|
|||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import tokenize
|
import tokenizer as tokenize
|
||||||
import keyword
|
import keyword
|
||||||
|
|
||||||
from jedi._compatibility import next, StringIO
|
from jedi._compatibility import next, StringIO
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ from __future__ import with_statement
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import tokenize
|
import tokenizer as tokenize
|
||||||
|
|
||||||
from jedi._compatibility import next, literal_eval, cleandoc, Python3Method, \
|
from jedi._compatibility import next, literal_eval, cleandoc, Python3Method, \
|
||||||
encoding, property, unicode, is_py3k
|
encoding, property, unicode, is_py3k
|
||||||
|
|||||||
Reference in New Issue
Block a user