sgraaf / gpx

A python package that brings support for reading, writing and converting GPX files.
https://gpx.readthedocs.io/en/stable/
Other
11 stars 3 forks source link

Fix serialization of Track.number and Route.number #10

Closed georgeto closed 1 year ago

georgeto commented 1 year ago

The number field is of type int, but Element.text expects a string, so without the conversion the assigment fails:

TypeError: Argument must be bytes or unicode, got 'int'