Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading whitespace in GTFS CSVs #2

Open
stationstops opened this issue Feb 9, 2010 · 0 comments
Open

Leading whitespace in GTFS CSVs #2

stationstops opened this issue Feb 9, 2010 · 0 comments

Comments

@stationstops
Copy link

Some (all?) GTFS feeds have leading whitespace after the delimiter. This is really annoying because strings will have this inserted (do not ask my why it is not csv reader default), which makes for a difficult bug when testing string equality.

This is fixed by setting an option to the csv reader.

Fix:
load_gtfs.py: 27
reader = csv.reader(f,skipinitialspace=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant