debpydep: Use Python3-compatible syntax

This commit is contained in:
Laurent Bachelier 2014-10-06 14:05:03 +02:00
commit d22656308a

View file

@ -13,7 +13,7 @@ for root, dirs, files in os.walk(sys.argv[1]):
if f.endswith('.py') and f != '__init__.py':
s = "from %s import %s" % (root.strip('/').replace('/', '.'), f[:-3])
try:
exec s
exec(s)
except ImportError as e:
print >>sys.stderr, str(e)
else: