except named exception handling

This commit is contained in:
NeroBurner 2015-09-17 13:25:08 +02:00 committed by Daniel Martí
parent af38f151a2
commit 5ca182a20d
6 changed files with 10 additions and 10 deletions

View file

@ -516,7 +516,7 @@ class vcs:
try:
self.gotorevisionx(rev)
except FDroidException, e:
except FDroidException as e:
exc = e
# If necessary, write the .fdroidvcs file.
@ -1602,7 +1602,7 @@ def FDroidPopen(commands, cwd=None, output=True):
try:
p = subprocess.Popen(commands, cwd=cwd, shell=False, env=env,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
except OSError, e:
except OSError as e:
raise BuildException("OSError while trying to execute " +
' '.join(commands) + ': ' + str(e))