debpydep: Use Python3-compatible syntax
This commit is contained in:
parent
0db5282f1e
commit
d22656308a
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ for root, dirs, files in os.walk(sys.argv[1]):
|
||||||
if f.endswith('.py') and f != '__init__.py':
|
if f.endswith('.py') and f != '__init__.py':
|
||||||
s = "from %s import %s" % (root.strip('/').replace('/', '.'), f[:-3])
|
s = "from %s import %s" % (root.strip('/').replace('/', '.'), f[:-3])
|
||||||
try:
|
try:
|
||||||
exec s
|
exec(s)
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print >>sys.stderr, str(e)
|
print >>sys.stderr, str(e)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue