diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-08-19 18:25:38 +0100 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-08-19 21:35:06 +0100 |
commit | 5f1ef11ad2e3016ac4029489d9429d7f93737fe5 (patch) | |
tree | 9f281450ea3bef2f3c631d8be66c040e9737a293 /src | |
parent | 200d6dcc83ea9ac0bf6f1506214e0bd9b65714f2 (diff) |
python/retrace: Trim null chars.
They are often left in memory mapped files, and are not part of the XML
accept chars anyway.
Diffstat (limited to 'src')
-rwxr-xr-x | src/gallium/state_trackers/python/retrace/parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/retrace/parser.py b/src/gallium/state_trackers/python/retrace/parser.py index 9ee47f6e19..d02fd7f741 100755 --- a/src/gallium/state_trackers/python/retrace/parser.py +++ b/src/gallium/state_trackers/python/retrace/parser.py @@ -101,6 +101,7 @@ class XmlTokenizer: self.index = 0 data = self.fp.read(size) self.final = len(data) < size + data = data.rstrip('\0') try: self.parser.Parse(data, self.final) except xml.parsers.expat.ExpatError, e: |