From d22656308afefe4a4b6c0e2882a4380e255420f2 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Mon, 6 Oct 2014 14:05:03 +0200 Subject: [PATCH] debpydep: Use Python3-compatible syntax --- tools/debpydep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debpydep.py b/tools/debpydep.py index b265331b..71076160 100755 --- a/tools/debpydep.py +++ b/tools/debpydep.py @@ -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: