[Pydev-cvs] org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modul
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-02 13:42:01
|
Update of /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29973/src_completions/org/python/pydev/editor/codecompletion/revisited/modules Modified Files: AbstractModule.java Log Message: __path__ not correctly found on some situations Index: AbstractModule.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modules/AbstractModule.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** AbstractModule.java 2 Feb 2008 22:29:30 -0000 1.14 --- AbstractModule.java 2 May 2008 13:42:01 -0000 1.15 *************** *** 107,116 **** ICompletionCache completionCache) throws CompletionRecursionException{ - if("__path__".equals(tok) && this.name != null && this.name.endsWith(".__init__")){ - //__init__.py modules have the __path__ always defined... it doesn't come in a from xxx import *, but - //is there when a from xxx import __path__ is used (or in some other access). - return IModule.FOUND_TOKEN; - } - //it's worth checking it if it is not dotted... (much faster as it's in a map already) if(tok.indexOf(".") == -1){ --- 107,110 ---- |