summaryrefslogtreecommitdiffstats
path: root/tools/yum-listpkgs-xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/yum-listpkgs-xml.py')
-rw-r--r--tools/yum-listpkgs-xml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/yum-listpkgs-xml.py b/tools/yum-listpkgs-xml.py
index 60d440ddf..2df5abbcd 100644
--- a/tools/yum-listpkgs-xml.py
+++ b/tools/yum-listpkgs-xml.py
@@ -39,6 +39,6 @@ yummain.cli.output.YumOutput.simpleList = mySimpleList
try:
sys.argv = [sys.argv[0], '-d', '0', 'list']
yummain.main(sys.argv[1:])
-except KeyboardInterrupt, e:
- print >> sys.stderr, "\n\nExiting on user cancel."
+except KeyboardInterrupt:
+ print("\n\nExiting on user cancel.", file=sys.stderr)
sys.exit(1)