CVS: python msp430-ram-usage.py,1.4,1.5

Chris Liechti <[email protected]> Tue, 03 Jun 2008 03:21:41 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23772/python

Modified Files:
	msp430-ram-usage.py 
Log Message:
fix exit code check for success (None)

Index: msp430-ram-usage.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-ram-usage.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- msp430-ram-usage.py	29 May 2008 13:45:24 -0000	1.4
+++ msp430-ram-usage.py	3 Jun 2008 10:21:37 -0000	1.5
@@ -26,7 +26,7 @@
 (options, args) = parser.parse_args()
 
 if len(args) != 1:
-    parser.error("incorrect number of arguments")
+    parser.error("missing object file name")
 
 
 
@@ -42,7 +42,7 @@
     m = re_obj.search(line)
     if m:
         objs[m.group(4)] = ((int(m.group(1),16), int(m.group(2)), m.group(3)))
-if syms.close() != 0:
+if syms.close():
     raise IOError("msp430-readelf failed")
 
 # store labels by address


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/