summaryrefslogtreecommitdiffstats
path: root/tools/yum-listpkgs-xml.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-26 10:14:43 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-26 10:19:52 -0500
commit7ed0493ee4af4ca14bb7642a29a66cd51f4d5836 (patch)
treed94042b8d8302da3d6989b720fe73cc9cd06e185 /tools/yum-listpkgs-xml.py
parente1c5dcea61d36c589b639e080a314c871b1b129f (diff)
downloadbcfg2-7ed0493ee4af4ca14bb7642a29a66cd51f4d5836.tar.gz
bcfg2-7ed0493ee4af4ca14bb7642a29a66cd51f4d5836.tar.bz2
bcfg2-7ed0493ee4af4ca14bb7642a29a66cd51f4d5836.zip
tools: Add full PY3K compatibility
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
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)