1
0
forked from VimPlug/jedi
Commit Graph

176 Commits

Author SHA1 Message Date
Dave Halter
40f1354f67 More unicode conversions 2017-12-24 03:35:15 +01:00
Dave Halter
5a06ea2699 Start using a lot more unicode literals for Python 2 2017-12-24 03:11:28 +01:00
Dave Halter
a38acdbe08 Use unicode sys paths always 2017-12-24 02:42:14 +01:00
Dave Halter
87666d72a1 Move the import logic to the subprocess 2017-12-23 17:59:56 +01:00
Dave Halter
649225333f Get the subprocess mostly working 2017-12-08 09:44:12 +01:00
Dave Halter
4136dcaf08 Make the subprocesses work and return the right sys paths for the different versions 2017-11-15 08:58:13 +01:00
Dave Halter
421ea222d1 virtualenv progress 2017-11-05 15:02:40 +01:00
Dave Halter
7019ca643e Remove a possible security issue
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00
Dave Halter
6a320147ac Catch an importlib warning. 2017-05-24 23:43:27 -04:00
Dave Halter
0da875281b Remove an unused compatibility function that was overriden by the same name lower in the same file. 2017-05-11 16:22:11 -04:00
daniel
5513f72987 added support for implicit ns packages and added tests 2017-02-23 23:53:14 +01:00
Dave Halter
1caa2ceafa Cannot use sys.version.major and minor names, because in Python 2.6 it's
not a namedtuple.
2017-01-23 01:09:01 +01:00
Dave Halter
00a9f1ec0a Update the tokenizer to include f literals and underscores. Need tests still. 2017-01-08 16:03:45 +01:00
Dave Halter
6d00a5702f If newer versions are using Jedi (e.g. at the moment Python 3.7), it shouldn't just result in a grammar issue, just because that grammar doesn't not exist. Just take the Python 3.6 grammar instead. 2017-01-07 15:54:04 +01:00
Dave Halter
1ef507e5e6 Cleanup some code and a small Python 2 fix. 2016-12-17 16:42:52 +01:00
Dmitry Sadovnychyi
60484707a0 Add support for ZIP and EGG packages in imports 2016-07-25 20:29:02 +08:00
Dave Halter
9245181a8c Some python 2.7 (and 3.3) compatibility improvements. 2016-07-03 02:54:21 +02:00
Dave Halter
82c76fa689 Merge with the linter branch (especially the changes of pep484. 2016-06-07 13:51:25 +02:00
Claude
a09611197b add ATEQUAL token for python < 3.5 2016-02-09 18:17:31 +01:00
Sergey Glazyrin
c2874ff84a fix for #122 2016-01-26 22:54:15 +01:00
Daniel Hahler
4469e654ae find_module_py33: use str(e) with ValueError
ValueError has no message attribute.

Fixes https://github.com/davidhalter/jedi/issues/584
2015-05-09 23:05:30 +02:00
Dave Halter
fbe26ab64a Importlib might raise a ValueError. Fix #491. 2015-04-13 15:12:46 +02:00
Dave Halter
72fd190149 unicode strings should not raise an error if used in repr.
Python 2 doesn't allow unicode objects in __repr__ methods. Therefore we need to encode them as utf-8 bytes.
2015-03-25 23:42:52 +01:00
Dave Halter
468ff59c1c Remove hasattr/next from _compatibility (not used anymore), thanks @dongweiming for noticing. 2015-03-06 00:25:42 +01:00
Dave Halter
e6b9111749 Python 2.7 compatibility. 2015-01-13 02:12:49 +01:00
Dave Halter
f4a508ac53 handle *args arguments the right way. 2014-05-29 20:53:51 +02:00
Dave Halter
289dbc8629 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2014-04-25 15:03:36 +02:00
Jorgen Schaefer
9ed0dc4861 Always load source files in binary mode.
Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.

Fixes #398.
2014-04-24 11:10:59 +02:00
Dave Halter
4ae99256be py3.0, py3.1 and py32 don't support unicode literals. Support those. 2014-04-22 16:00:13 +02:00
ColinDuquesnoy
d6187a4e23 Fix UnicodeDecodeError
Open binary file in binary mode. This happens in py34 because they
fixed the missing ``get_filename`` attribute of ExtensionLoader
2014-03-18 19:19:35 +01:00
Dave Halter
c5fcebde82 changed _compatibility.utf8 -> 'u' and removed a lot of the issues with the now enforced unicode source input of the parser 2014-02-23 11:29:00 +01:00
Dave Halter
5478e50f8b Merge branch 'dev' of github.com:davidhalter/jedi into dev 2014-02-21 17:52:44 +01:00
Dave Halter
9c2fcfffd7 StringIo is now always used as part of the io library 2014-02-21 17:52:09 +01:00
ColinDuquesnoy
18a31dcbf1 Fix read mode for pyc files
Now all test should pass on travis.
2014-02-18 19:00:55 +01:00
ColinDuquesnoy
a75773cf9f Fix import of compiled module with python3.
This at least fix #331
2014-02-17 09:08:30 +01:00
Dave Halter
99882724da is_py3k -> is_py3 2014-01-14 11:43:56 +01:00
Dave Halter
a6e49f2680 compatibility improvements -> use reduce from functools 2014-01-14 11:31:01 +01:00
Dave Halter
d40030c14e disable a test for py26. 2013-12-27 02:40:52 +01:00
David Halter
873fc16247 py33 fix for an undefined name 2013-10-11 23:37:31 +04:30
David Halter
566d1023ee don't load builtin modules, if not necessary in python3.3 2013-09-14 23:15:41 +04:30
David Halter
a2ceaf1987 fixed import problems in python3.3 2013-09-14 23:12:09 +04:30
David Halter
c3ba7d2ae8 remove except only clauses 2013-09-06 00:02:32 +04:30
David Halter
9a3ea38b1c use builtin repl completion after all, but written by us not the std lib module, which doesn't seem to work really, #280 2013-08-15 12:47:10 +04:30
David Halter
f93226420e fix a few debugging problems 2013-08-11 20:10:52 +04:30
David Halter
29f89cc75a finally fixed a unicode problem that existed for a longer time 2013-07-18 16:55:19 +02:00
Laurens Van Houtven
ad932815b9 PEP8 whitespace fixes 2013-07-10 18:55:48 +02:00
Laurens Van Houtven
fd87e8af2a Refactor the way module_path, module_file and is_package are computed to be a bit more legible 2013-06-20 22:36:16 +02:00
Laurens Van Houtven
1b0822743c Clean up find_module_py33 loader finding 2013-06-20 22:05:08 +02:00
Laurens Van Houtven
f171617766 Raise a nicer exception instance instead of raising an exception class 2013-06-20 21:40:37 +02:00
Laurens Van Houtven
44b1390d80 Clean up find_module_pre_py33 2013-06-20 21:35:56 +02:00