tools/ldgen: Fix parsing of sections names on Windows

pull/4512/merge
Roland Dobai 2020-10-26 11:55:48 +01:00
rodzic f806261964
commit c66868d26c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -581,8 +581,8 @@ class SectionsInfo(dict):
archive_path = (Literal("In archive").suppress() +
White().suppress() +
# trim the last character (:) from archive_path
restOfLine.setResultsName("archive_path").setParseAction(lambda t: t[0][:-1]))
# trim the colon and line ending characters from archive_path
restOfLine.setResultsName("archive_path").setParseAction(lambda s, loc, toks: s.rstrip(":\n\r ")))
parser = archive_path
results = None