pld-builder.new: PLD_Builder/log.py String exceptions are deprecated. Fix t...

arekm arekm at pld-linux.org
Fri Jul 18 13:44:15 CEST 2008


Author: arekm                        Date: Fri Jul 18 11:44:15 2008 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
String exceptions are deprecated. Fix that.

---- Files affected:
pld-builder.new/PLD_Builder:
   log.py (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/log.py
diff -u pld-builder.new/PLD_Builder/log.py:1.9 pld-builder.new/PLD_Builder/log.py:1.10
--- pld-builder.new/PLD_Builder/log.py:1.9	Thu Dec  9 19:09:04 2004
+++ pld-builder.new/PLD_Builder/log.py	Fri Jul 18 13:44:09 2008
@@ -21,7 +21,7 @@
     
 def panic(s):
     log(syslog.LOG_ALERT, "PANIC: %s" % s)
-    raise "PANIC: %s" % str(s)
+    raise Exception, "PANIC: %s" % str(s)
 
 def alert(s):
     log(syslog.LOG_ALERT, "alert: %s" % s) 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/log.py?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list