[ctypes-commit] ctypes/sandbox/tools/codegen cparser.py,1.3,1.4
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-01-21 10:44:05
|
Update of /cvsroot/ctypes/ctypes/sandbox/tools/codegen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9339 Modified Files: cparser.py Log Message: Small bug showed up on linux. Index: cparser.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/sandbox/tools/codegen/cparser.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** cparser.py 21 Jan 2005 10:03:25 -0000 1.3 --- cparser.py 21 Jan 2005 10:43:56 -0000 1.4 *************** *** 233,239 **** if self.options.xmlfile: f = open(self.options.xmlfile, "r+") ! f.seek(-12, 2) ! assert f.read() == "</GCC_XML>\n" ! f.seek(-12, 2) f.flush() --- 233,240 ---- if self.options.xmlfile: f = open(self.options.xmlfile, "r+") ! f.seek(-11, 2) ! data = f.read() ! assert data == "</GCC_XML>\n" ! f.seek(-11, 2) f.flush() |