Fix #3556 (PDB input fail - OPF contains invalid tours section)

This commit is contained in:
Kovid Goyal 2009-09-22 16:07:25 -06:00
parent be0a623e65
commit 2efa863948

View File

@ -30,7 +30,7 @@ class PdbHeaderReader(object):
def name(self): def name(self):
self.stream.seek(0) self.stream.seek(0)
return self.stream.read(32).replace('\x00', '') return re.sub('[^-A-Za-z0-9 ]+', '_', self.stream.read(32).replace('\x00', ''))
def full_section_info(self, number): def full_section_info(self, number):
if number not in range(0, self.num_sections): if number not in range(0, self.num_sections):