1
0
forked from VimPlug/jedi
Commit Graph

3383 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter f92e675400 Remove the whole parser. 2017-05-19 10:26:24 -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 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
Élie Gouzien a78769954d Check whether inspect.getfile will raise a TypeError and anticipate it.
Anticipate the raise of TypeError from inspect.getfile to prevent the computation of repr() for the error message wich is not used.
Useful for some big pandas arrays.
Fix tentative of #919.
2017-05-06 19:40:36 +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 5c836a72b6 Lambda and Function docstrings render better. 2017-05-02 08:57:03 +02:00
Dave Halter fc7cc1c814 Docstrings for get_defined_names. 2017-05-02 08:50:52 +02:00
Dave Halter e96bb29d18 Param docstring. 2017-05-02 08:43:46 +02:00
Dave Halter c1c3f35e08 Docstring for Param.get_code(). 2017-05-01 02:26:24 +02:00
Dave Halter 63679aabd9 Replace Param.get_description with get_code and a parameter include_coma. 2017-05-01 02:19:42 +02:00
Dave Halter e0b0343a78 Remove expanduser from the parser path. Not sure if that makes sense so I'd rather remove it. 2017-04-30 15:23:43 +02:00
Dave Halter 0f1570f682 position_nr -> position_index 2017-04-30 14:12:30 +02:00
Dave Halter 2383f5c0a0 docstrings for the parser tree. 2017-04-30 14:06:57 +02:00
Dave Halter a1454e3e69 Fix a docstring test. 2017-04-30 03:11:09 +02:00
Dave Halter 78fd3ad861 is_generator is not needed in lambdas. 2017-04-30 03:07:48 +02:00