1
0
forked from VimPlug/jedi

minor refactoring, use finally instead of complicated except

This commit is contained in:
David Halter
2013-08-11 18:15:24 +04:30
parent 1121588678
commit 604fe5e3f7

View File

@@ -262,11 +262,8 @@ class ImportPath(pr.Base):
sys.path, temp = sys_path_mod, sys.path
try:
importing = find_module(string)
except ImportError:
# TODO insert finally here
finally:
sys.path = temp
raise
sys.path = temp
return importing