summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-info
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-13 18:41:32 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-13 18:41:32 +0000
commit22009e5de1252b669dddd9517abfea3992b40137 (patch)
tree46fa3e5a54dce45856cc0c5224aaec96e8140675 /src/sbin/bcfg2-info
parent4a1743819192b4d18addbaee90009493f841f43e (diff)
downloadbcfg2-22009e5de1252b669dddd9517abfea3992b40137.tar.gz
bcfg2-22009e5de1252b669dddd9517abfea3992b40137.tar.bz2
bcfg2-22009e5de1252b669dddd9517abfea3992b40137.zip
Switch to newstyle exception raises
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3446 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-xsrc/sbin/bcfg2-info4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 0bb315f7c..56503ab5b 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -26,7 +26,7 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
Bcfg2.Server.Core.Core.__init__(self, {}, cfpath)
except Bcfg2.Server.Core.CoreInitError, msg:
print "Core load failed because %s" % msg
- raise SystemExit, 1
+ raise SystemExit(1)
self.prompt = '> '
self.cont = True
for i in range(25):
@@ -41,7 +41,7 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
def do_quit(self, _):
"""Exit program.
Usage: [quit|exit]"""
- raise SystemExit, 0
+ raise SystemExit(0)
do_EOF = do_quit