Skip to content

null zero bugfix - #310

Merged
jteresco merged 1 commit into
TravelMapping:masterfrom
yakra:TravelerList
Apr 17, 2020
Merged

null zero bugfix#310
jteresco merged 1 commit into
TravelMapping:masterfrom
yakra:TravelerList

Conversation

@yakra

Copy link
Copy Markdown
Contributor

This change from #309 was poorly thought out.
The idea was to have a wee bit more robustness & allow for cases with whitespace before null zeros, and trim the null zeros first.
Problem is, unlike C++'s std::getline, Python's readlines doesn't automatically strip the endline. So The \0s aren't stripped because of the endline, and any whitespace then won't be stripped because of the \0s.
A single customized strip should take care of any combination of the three.

Luckily, this only affects lowenbrau.list, and even then not the latest version. Found this because I frequently check out an older head to run speed tests.

@jteresco
jteresco merged commit 91e12d4 into TravelMapping:masterApr 17, 2020
@yakra
yakra deleted the TravelerList branch April 18, 2020 15:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@yakra@jteresco