Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv8607
Modified Files:
pedump.py
Log Message:
open the dumpable executable in explicit binary mode
Index: pedump.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/pedump.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pedump.py 13 May 2003 21:30:55 -0000 1.6
+++ pedump.py 21 May 2003 12:42:43 -0000 1.7
@@ -20,7 +20,7 @@
if args:
for filename in args:
- f = open(filename, 'r')
+ f = open(filename, 'rb')
def take (tpl): return ftake(f, tpl)
print '=== MZ header ==='
print 'MZ magic: %r' % f.read(2)
|