1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-07-24 05:20:35 +02:00

python3 compatibility: except

changes 'except FooError, fe' to 'except FooError as fe'

available in python 2.6
This commit is contained in:
Michal Vyskocil
2013-04-09 11:27:02 +02:00
committed by Adrian Schröter
parent d3648be24b
commit 3a93ac6d10
16 changed files with 110 additions and 110 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ if __name__ == '__main__':
import sys
try:
archq = ArchQuery.query(sys.argv[1])
except ArchError, e:
except ArchError as e:
print e.msg
sys.exit(2)
print archq.name(), archq.version(), archq.release(), archq.arch()