Commit 25dbf467 authored by Kirill Smelkov's avatar Kirill Smelkov

setup: Fix for py3

py2-only syntax introduced in acf7e91d (setup/runcmd: Properly report
errors, if running command is missing):

      File "setup.py", line 168
        except Exception, e:
                        ^
    SyntaxError: invalid syntax
parent f1d876f8
...@@ -172,7 +172,7 @@ def register_as_entrypoint(func, entryname, groupname, distname): ...@@ -172,7 +172,7 @@ def register_as_entrypoint(func, entryname, groupname, distname):
def runcmd(argv): def runcmd(argv):
try: try:
process = Popen(argv, stdout=PIPE) process = Popen(argv, stdout=PIPE)
except Exception, e: except Exception as e:
raise RuntimeError("%s: %s" % (argv, e)) raise RuntimeError("%s: %s" % (argv, e))
output, _err = process.communicate() output, _err = process.communicate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment