git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3445 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2009-11-19 17:33:18 +00:00
parent b12f0e8783
commit 70b8e29d0e
2 changed files with 30 additions and 9 deletions

View File

@ -248,9 +248,9 @@ class log:
file = list[0]
if file[-3:] == ".gz":
f = popen("%s -c %s" % (PIZZA_GUNZIP,file),'r')
f = popen("%s -c %s" % (PIZZA_GUNZIP,file),'rb')
else:
f = open(file)
f = open(file,'rb')
if len(list) == 2: f.seek(list[1])
txt = f.read()