azavea / python-omgeo

OMGeocoder - A python geocoding abstraction layer
http://python-omgeo.readthedocs.io/en/latest/
MIT License
36 stars 14 forks source link

Fix template strings in filter class __repr__ methods #62

Closed KlaasH closed 4 years ago

KlaasH commented 4 years ago

While trying to debug an encoding problem in Cicero, I ended up digging into OMGeo again, and in the process discovered that just trying to examine the geocoder settings caused an error from postprocessors.py:

TypeError: not enough arguments for format string

Looks like the AttrListIncludes and AttrListExcludes filter classes were based off similar ones that had one additional parameter.

So this fixes that, and also:

None of this is urgent--the Cicero issue turned out not to implicate this package after all--but it might as well go in.

Testing

flibbertigibbet commented 4 years ago

@KlaasH should we close this?