mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Slight rewording of msg text in rewrite_imports function
This commit is contained in:
parent
9e3d6bfa14
commit
8a220e1514
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue