Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 882f8029ea Use split_lines and python_bytes_to_unicode directly. 2017-09-03 18:38:00 +02:00
Dave Halter ef89593896 Disable more tests in Python2.6, because of set literals that don't exist there. 2017-09-03 02:01:43 +02:00
Dave Halter 957f2cedf4 Disable some tests that don't run in 2.6, because its syntax doesn't support it. 2017-09-03 01:23:54 +02:00
Dave Halter 245ad9d581 Bump parso version. 2017-09-03 01:10:22 +02:00
Dave Halter 65c02a2332 A bit of shuffling code around get_definition around. 2017-09-03 01:05:53 +02:00
Dave Halter f69d8f1f29 _get_definition -> get_definition in parso. 2017-09-03 00:50:52 +02:00
Dave Halter 4795ed9071 More refactoring. 2017-09-03 00:39:15 +02:00
Dave Halter 6fb2f73f88 Some more refactorings. 2017-09-03 00:37:20 +02:00
Dave Halter b64690afb8 Param defaults were not correctly followed when goto was used on them. 2017-09-03 00:22:59 +02:00
Dave Halter e85816cc85 Simplify getting code for completions. 2017-09-03 00:11:23 +02:00
Dave Halter fc8326bca1 Finally get rid of the last get_definition. 2017-09-03 00:07:14 +02:00
Dave Halter 333babea39 get_definition has now a new option. 2017-09-02 23:56:00 +02:00
Dave Halter 747e0aa7c4 Remove a get_definition usage. 2017-09-02 23:23:09 +02:00
Dave Halter 4a04bf78c7 Move some code around. 2017-09-02 22:45:23 +02:00
Dave Halter 9663e343c2 Almost the last switch to _get_definition. 2017-09-02 22:42:01 +02:00
Dave Halter 03da6b5655 get_definition change in finder. 2017-09-02 21:46:03 +02:00
Dave Halter 6419534417 Some more _get_definition fixes 2017-09-02 21:37:59 +02:00
Dave Halter ee6d68c3a8 Remove a get_definnition usage. 2017-09-02 17:59:09 +02:00
Dave Halter 7e19e49200 Start replacing get_definitions. 2017-09-02 17:48:01 +02:00
Dave Halter 9cac7462d6 Return statements should be handled correctly if the return_stmt is only a return without an expression behind it. 2017-09-02 14:03:54 +02:00
Dave Halter c47f5ca68c Fix issues with yield. 2017-09-01 18:38:19 +02:00
Dave Halter e2d53f51b0 test for yields in expressions. 2017-09-01 18:08:52 +02:00
Dave Halter 16f1eb417a One more parso rename. 2017-09-01 18:05:19 +02:00
Dave Halter 2b08c0ac88 Bump parso to 0.0.3 2017-08-31 22:54:09 +02:00
Dave Halter 3789709ec0 Add the deployment script from parso. 2017-08-31 22:45:27 +02:00
Dave Halter fe9be9fe09 source_to_unicode -> python_bytes_to_unicode. 2017-08-15 20:09:48 +02:00
Dave Halter f9e31dc941 Refactor splitlines -> split_lines. 2017-08-15 19:55:50 +02:00
Dave Halter e3ca1e87ff Simplify Contributing.md. 2017-08-13 22:31:05 +02:00
Dave Halter a37201bc1d Finally fixing the Python 2 issues with static_getattr. 2017-08-13 22:24:50 +02:00
Dave Halter 13a0d63091 Add Python 2 compatibility. 2017-08-12 23:15:16 +02:00
Dave Halter 88cfb2cb91 Remove side effects when accessing jedi from the interpreter.
Note that there is http://bugs.python.org/issue31184.
Fixes #925.
2017-08-12 22:49:05 +02:00
Dave Halter b26b8a1749 Merge branch 'dev' 2017-08-12 22:46:24 +02:00
Dave Halter 997cb2d366 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-08-12 22:45:47 +02:00
Dave Halter ff001e07a6 In parso params is now get_params(). 2017-08-06 17:35:05 +02:00
Dave Halter 39cbd003c0 A small change in parso changed the normalize API. 2017-08-06 16:43:47 +02:00
Dave Halter 8d6732c28c Remove a print statement. 2017-07-16 22:16:13 +02:00
Dave Halter 7e4504efbd Fix ellipsis issues of python2. 2017-07-16 20:07:49 +02:00
Dave Halter 54490be1b2 parso.load_grammar now needs version as a keyword argument. 2017-07-16 17:16:37 +02:00
Dave Halter 2fcd2f8f89 Fix some more stuff because of newer parso changes. 2017-07-14 18:21:52 +02:00
Dave Halter 945a2ba405 Dedent some code to avoid issues with parso. 2017-07-09 00:27:23 +02:00
Dave Halter 72b4c8bd9f The normalize function is private for now. 2017-07-08 18:56:42 +02:00
Dave Halter e0485b032e Fix some stuff to make parso work again. 2017-06-02 00:00:31 +02:00
Dave Halter af26cc9f05 Remove the license parts that are not needed anymore, because they are now part of parso. 2017-06-01 23:59:04 +02:00
Dave Halter 5d657500d1 Use the new normalize function instead of get_code(normalize=True) that was removed in parso. 2017-05-27 13:12:11 -04:00
Dave Halter b9271cf5a5 Use the parser_cache correctly. 2017-05-26 13:43:18 -04:00
Dave Halter 76529ca34d The parser_cache contents have changed. Therefore adapt. 2017-05-26 12:52:52 -04:00
Dave Halter 35e248091e Some more parso API changes. 2017-05-26 12:02:39 -04:00
Dave Halter 3015e7e60f Remove use_exact_op_types because the default changed. 2017-05-26 11:35:47 -04:00
Dave Halter 24cd603fcf Some more parso adaptations. 2017-05-26 09:08:34 -04:00
Dave Halter f94ef63ff2 Remove load_python_grammar for tests as well. 2017-05-25 13:36:40 -04:00
Dave Halter 3f36824a94 Parso changed load_python_grammar to load_grammar. 2017-05-25 12:41:19 -04:00
Dave Halter d0127a7f61 Fix a warning that happened if there was no valid Python function in a place. 2017-05-25 12:26:07 -04:00
Dave Halter ef2e2f343e Fix some warnings. 2017-05-25 12:24:21 -04:00
Dave Halter 6a320147ac Catch an importlib warning. 2017-05-24 23:43:27 -04:00
Dave Halter 4b0b07791e Bump parso version. 2017-05-24 00:42:06 -04:00
Dave Halter 7173559182 Move a test to parso. 2017-05-24 00:41:55 -04:00
Dave Halter cd8932fbfc Add a latest grammar to the evaluator and use it to avoid importing from parso import parse. 2017-05-24 00:37:36 -04:00
Dave Halter b90589b62e Some changes because parso has changed. 2017-05-22 15:42:42 -04:00
Dave Halter 91e753e07a The deploy script should create versions prefixed with v. 2017-05-20 18:01:33 -04:00
Dave Halter d6f695b3bb Use the ast module instead of a jedi import to get the jedi version.
With dependencies it's not possible to do this with importing jedi anymore. It's now just a bit more complicated. Gosh I hate setup.py.
2017-05-20 17:53:11 -04:00
Dave Halter c7984c0710 Add a requirements.txt.
Also use it within setup.py. It doesn't seem possible to define dependencies for tox with install_requires.
2017-05-20 17:22:34 -04:00
Dave Halter fdff9396dd Move an import. 2017-05-20 16:08:43 -04:00
Dave Halter aec86c6c80 distutils doesn't support install_requires. 2017-05-20 16:07:38 -04:00
Dave Halter f35f1b9676 Add the cache_path parameter to parso calls. 2017-05-20 10:08:48 -04:00
Dave Halter 50c7137437 splitlines and source_to_unicode are utils of parso. 2017-05-20 09:55:16 -04:00
Dave Halter 0f4b7db56a Move jedi parser cache tests to parso. 2017-05-19 15:04:28 -04:00
Dave Halter 3c2b10a2a0 Remove a test that wasn't used for a long time. 2017-05-19 14:45:36 -04:00
Dave Halter 576c8cb433 Remove a star import cache test (the star import cache doesn't exist anymore). 2017-05-19 14:24:48 -04:00
Dave Halter 9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter ccbaa12143 Add parso as a depencency in setup.py. 2017-05-19 10:29:32 -04:00
Dave Halter 32432b1cd1 Remove the parser packages from setup.py. 2017-05-19 10:27:26 -04:00
Dave Halter f92e675400 Remove the whole parser. 2017-05-19 10:26:24 -04:00
Dave Halter fb1c208985 Remove the tests that have been moved to parso. 2017-05-19 10:23:56 -04:00
Dave Halter 3c57f781dd Move another few tests. 2017-05-15 15:18:42 -04:00
Dave Halter f4548d127c Some simplifications for the parsers. 2017-05-15 15:02:45 -04:00
Dave Halter 882ddbf8ac Move some more parser tests. 2017-05-15 15:00:34 -04:00
Dave Halter 0a8c96cd22 Remove a test that is really not necessary anymore, because the issues that it was covering back then are not issues anymore with the new infrastructure. 2017-05-15 14:53:50 -04:00
Dave Halter 6848762f7c Move some more tests. 2017-05-15 14:51:25 -04:00
Dave Halter f8b5aab6f4 Move some parser tests. 2017-05-15 13:57:26 -04:00
Dave Halter 90b531a3b3 Correcting a sentence. 2017-05-15 11:10:22 -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
Dave Halter 0b3590ce20 Python 3.6 was not tested in the default configuration of tox. 2017-05-08 19:55:35 +02:00
Dave Halter 9fb7fb66da Move another test to delete a file. 2017-05-07 16:39:32 +02:00
Dave Halter 3b033bb276 Remove two tests that are not necessary anymore because the code that made them necessary was removed (some import hacks). 2017-05-07 16:33:24 +02:00
Dave Halter ab71c943ee Move a parser test to the correct place. 2017-05-07 16:29:48 +02:00
Dave Halter d717c3bf40 Merge some import tests. 2017-05-07 16:20:49 +02:00
Dave Halter f9f60177bf Move an analysis test. 2017-05-07 16:14:21 +02:00
Dave Halter 6b7376bc5d Move some stdlib tests. 2017-05-07 16:06:01 +02:00
Dave Halter 6c95f73d77 Remove a function that was not really needed. 2017-05-07 16:00:08 +02:00
Dave Halter 84d8279089 Import.paths -> Import.get_paths. 2017-05-07 15:47:34 +02:00
Dave Halter 9bf66b6149 Make Import.aliases private. 2017-05-07 15:38:03 +02:00
Dave Halter 66b28ca840 Small cleanup. 2017-05-07 15:22:45 +02:00
Dave Halter fe49fc9b99 Add slots to the PythonMixin. 2017-05-07 15:06:34 +02:00
Dave Halter 536e62e67d Move is_scope and get_parent_scope out of the parser. 2017-05-07 14:58:53 +02:00
Dave Halter 0882849e65 Don't do a simple_stmt error recovery in the parser, because it makes it more complicated. 2017-05-07 14:52:46 +02:00
Dave Halter 30a02587a7 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-05-07 14:46:47 +02:00
Dave Halter 14eeb60240 Remove is_scope from CompiledObject. It's not needed according to tests. 2017-05-05 09:23:50 +02:00
Dave Halter f916b9b054 More docstrings. 2017-05-05 09:21:42 +02:00
Dave Halter 336b8a46d0 search_ancestor now uses *node_types as a parameter instead of a mix of tuple and simple string like isinstance. 2017-05-02 19:19:07 +02:00
Dave Halter 6ea06fdfd8 Even if static analysis is not working well, we can at least write it correctly. 2017-05-02 08:59:07 +02:00