mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
Remove debug FIXME and simplify code
git-svn-id: http://svn.pyinstaller.org/trunk@468 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
@@ -321,18 +321,13 @@ class ImportManager:
|
||||
fqname = nm
|
||||
if threaded:
|
||||
self._acquire()
|
||||
mod = _sys_modules_get(fqname, UNTRIED)
|
||||
if mod is UNTRIED:
|
||||
try:
|
||||
try:
|
||||
mod = _sys_modules_get(fqname, UNTRIED)
|
||||
if mod is UNTRIED:
|
||||
mod = _self_doimport(nm, ctx, fqname)
|
||||
except Exception, e:
|
||||
print "FIXME: _self_doimport %r" % e,
|
||||
print " nm='%s' ctx='%s' fqname='%s'" % (nm, ctx, fqname)
|
||||
if threaded:
|
||||
self._release()
|
||||
raise
|
||||
if threaded:
|
||||
self._release()
|
||||
finally:
|
||||
if threaded:
|
||||
self._release()
|
||||
if mod:
|
||||
ctx = fqname
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user