Slight rewording of msg text in rewrite_imports function

This commit is contained in:
Joel Gerber 2017-06-09 11:09:06 -04:00
parent 9e3d6bfa14
commit 8a220e1514
Failed to generate hash of commit

View file

@ -386,9 +386,9 @@ def rewrite_imports(name, pkg, order, imps):
for n in a.names:
p, dot, m = n.name.rpartition('.')
if p == pkg and m in order:
msg = ('Cannot amalgamate amalgam import of '
'amalgamated module:\n\n import {0}.{1}\n'
'\nin {0}/{2}.py').format(pkg, n.name, name)
msg = ('Cannot amalgamate import of amalgamated module:'
'\n\n import {0}.{1}\n\nin {0}/{2}.py').format(
pkg, n.name, name)
raise RuntimeError(msg)
imp = (Import, n.name, n.asname)
if imp not in imps: