mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-18 09:55:02 +08:00
Make sure to check the module cache before loading a module (again)
This hopefully results in some performance improvements (maybe numpy?).
This commit is contained in:
@@ -18,7 +18,7 @@ date.not_existing_attribute
|
||||
from datetime.date import today
|
||||
|
||||
#! 16 import-error
|
||||
import datetime.date
|
||||
import datetime.datetime
|
||||
#! 7 import-error
|
||||
import not_existing_nested.date
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ except ImportError:
|
||||
pass
|
||||
try:
|
||||
#! 7 import-error
|
||||
import not_existing_import
|
||||
import not_existing_import2
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user