1
0
forked from VimPlug/jedi
Commit Graph

64 Commits

Author SHA1 Message Date
David Halter
604fe5e3f7 minor refactoring, use finally instead of complicated except 2013-08-11 18:15:24 +04:30
David Halter
1121588678 use ImportPath.is_relative_import instead of complicated lookups all the time 2013-08-11 18:14:58 +04:30
David Halter
81e625862e os.path is now accessible, but nested imports in general are not. fixes #213, #230 2013-08-11 18:10:21 +04:30
David Halter
710dac797b fix a nested import problem with not found imports 2013-08-11 17:59:36 +04:30
David Halter
c6e08221ce fixed more import problems (also with the import usage), definitely fixes davidhalter/jedi-vim#152 2013-08-07 10:24:28 +04:30
David Halter
f72816a702 fix builtin module imports, fixes davidhalter/jedi-vim#152 2013-08-06 18:44:34 +04:30
Laurens Van Houtven
cdc41128b4 (Mostly) whitespace fixes 2013-07-10 14:45:47 +02:00
Laurens Van Houtven
b5ee375fe1 Rename explicit_absolute_import to has_explicit_absolute_import 2013-07-10 12:12:33 +02:00
Laurens Van Houtven
e39f8a246e Merge branch 'dev' of git://github.com/davidhalter/jedi 2013-06-23 22:50:00 +02:00
Laurens Van Houtven
60ee6c607a Don't throw away path optimization for modules with explicit absolute import 2013-06-23 22:43:21 +02:00
Laurens Van Houtven
368c7fd5b5 Only deal with explicit absolute_import 2013-06-23 22:30:53 +02:00
Laurens Van Houtven
7eff1bbf06 Don't mess with the path if the import is absolute 2013-06-23 22:00:23 +02:00
David Halter
a9bf06987a completion on empty import problem 2013-05-19 21:13:32 +04:30
Danilo Bargen
86d775324b Fix most flake8 issues (fixes #205) 2013-04-27 15:40:36 +02:00
Danilo Bargen
f98b0d7b6f New "with ignored(*exceptions)" context manager 2013-04-17 23:28:37 +02:00
Aldo Stracquadanio
07ec134bc9 Adding python 3.3 to test environment, mani fixes
Added python 3.3 to test-suite

Removed unused import

Removed unused import

Migrated to EAFP for attribute checking

Bumped version of ModulePickling for migration to hashlib

Added py33 environment to tox

Fixed issue with package importing on python 3.3
2013-03-27 10:48:56 +00:00
Aldo Stracquadanio
d481a7aae4 Created find_module helper to handle compatibility with python 3.3
Moved package checking logic in follow_str function

Created find_module compatibility helper method

Conditional implementation of load_module for python 3.3
2013-03-27 10:47:29 +00:00
David Halter
7b6a4c9a2b some corrections of imports 2013-03-15 16:01:23 +04:30
David Halter
9ad9c806bb rename non-cycling imports to 'from jedi import ..' 2013-03-15 15:02:33 +04:30
Takafumi Arakaki
95a98c9033 Do not use >>> for non-doctest code example
Use literal block instead.
2013-02-26 10:36:08 +01:00
David Halter
926ab81bf2 some import fixes 2013-02-19 00:11:15 +04:30
David Halter
52b32a01c1 move default arguments [] to (), because mutable may be dangerous (especially in a recursive environment 2013-02-11 01:21:51 +01:00
David Halter
f3635ae75c imports docstring 2013-02-06 18:20:57 +01:00
David Halter
59de98af67 builtin.Parser -> builtin.BuiltinModule 2013-02-06 15:42:27 +01:00
David Halter
2b64171dd7 evaluate.get_scopes_for_name -> evaluate.find_name 2013-02-05 18:27:01 +01:00
David Halter
650b96dbda improve docstrings of evaluate 2013-02-05 18:21:38 +01:00
David Halter
e6352ae0a2 move CachedModule and get_sys_path from builtin.py to modules.py 2013-02-05 17:17:10 +01:00
David Halter
bc08ea9630 renamed all occurences of parsing 2013-02-05 16:29:39 +01:00
David Halter
ac2b0016d5 fix import problems with negative kill_counts, fixes #111 2013-01-14 21:25:48 +01:00
David Halter
64465dae8d fix problem with empty import_paths 2012-12-30 10:32:11 +01:00
David Halter
41362370ed follow imports if they are in the file path, fixes davidhalter/jedi-vim#56 2012-12-30 10:29:35 +01:00
David Halter
50d6f8e916 fix completions on 'from . import variable' 2012-12-27 16:13:48 +01:00
David Halter
21bd50c608 follow 'from . import variable', fixes parts of davidhalter/jedi-vim#56 2012-12-27 15:30:43 +01:00
David Halter
31b335dc08 fix for tar_import stuff, that was caused by http://bugs.python.org/issue16791, may affect davidhalter/jedi-vim#56 2012-12-27 13:32:39 +01:00
David Halter
0d6d84402d move star_import_cache to cache.py 2012-12-22 01:39:22 +01:00
David Halter
c1d442fa17 added a line_offset attribute - enables fast_parser to change positions 2012-12-16 17:23:15 +01:00
David Halter
9b45ddcb7c removed faked_scopes, was only necessary because of weakrefs. 2012-12-12 21:31:41 +01:00
David Halter
e8ddc35a1b caches have their own module now. 2012-12-12 21:28:19 +01:00
David Halter
9dfa98c474 refactoring of a few tests 2012-12-09 21:38:39 +01:00
David Halter
48a45ee55b import statement doc works now -> fixes davidhalter/jedi-vim#44 2012-12-09 19:02:37 +01:00
David Halter
d7727bdccd fix python3.2 problems 2012-12-09 16:49:26 +01:00
David Halter
6bdda36205 removed all the weakref stuff again. It didn't speed up anything, but made things much more complicated 2012-12-09 16:33:24 +01:00
David Halter
1e259c1c6e none positions shouldn't be an option, (0, 0) is the 'invalid' or 'generated' position for objects that are always found 2012-11-24 17:42:52 +01:00
David Halter
e921ec11e3 fixed a recursion problem, that occured with invalidate_star_imports 2012-11-24 15:43:05 +01:00
David Halter
936f7f9fd5 private variables are not accessible anymore, but still completeable - fixes and tests for #56 2012-11-22 23:50:26 +01:00
David Halter
816d01b543 finally fixed the most prominent bug, that is being featured on the front page of github-jedi -> class methods shouldn't return their params as a completion 2012-11-22 13:01:00 +01:00
David Halter
c706bae55b fixed star import invalidation exception 2012-11-21 16:58:22 +01:00
David Halter
586dcc273c developed star import caching. useful for numpy/pylab/scipy... fixes jedi-vim issue 23 2012-11-21 16:47:31 +01:00
David Halter
890748ac9f star caching preparations 2012-11-21 13:45:38 +01:00
David Halter
1d3ee0237e remove RessourceWarning from Python3 tests 2012-11-20 15:56:15 +01:00