Message174615
My guess is that line 454 in pkgutil.py should pass "pkg_name" into the import_module() function, not "pkg". I get the following error when compiling it with Cython:
Error compiling Cython file:
------------------------------------------------------------
...
msg = "Relative module name {!r} not supported".format(fullname)
raise ImportError(msg)
if '.' in fullname:
# Get the containing package's __path__
pkg_name = fullname.rpartition(".")[0]
pkg = importlib.import_module(pkg)
^
------------------------------------------------------------
pkgutil.py:454:41: local variable 'pkg' referenced before assignment |
|
Date |
User |
Action |
Args |
2012-11-03 13:20:21 | scoder | set | recipients:
+ scoder |
2012-11-03 13:20:21 | scoder | set | messageid: <1351948821.5.0.882170021897.issue16393@psf.upfronthosting.co.za> |
2012-11-03 13:20:21 | scoder | link | issue16393 messages |
2012-11-03 13:20:21 | scoder | create | |
|