X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Fgeocode.py;h=fa8956d9c1364ec6ebf280315a6506d6227bb160;hb=HEAD;hp=e3e416e9ab84b487eeb17eb08ecf490b647a1d4d;hpb=b06f57b3bb13990b0502ec7698e35622237c1ed0;p=pyutils.git diff --git a/src/pyutils/geocode.py b/src/pyutils/geocode.py index e3e416e..fa8956d 100644 --- a/src/pyutils/geocode.py +++ b/src/pyutils/geocode.py @@ -9,9 +9,9 @@ Also try:: - $ curl --form addressFile=@localfile.csv \ - --form benchmark=2020 \ - https://geocoding.geo.census.gov/geocoder/locations/addressbatch \ + $ curl --form addressFile=@localfile.csv \\ + --form benchmark=2020 \\ + https://geocoding.geo.census.gov/geocoder/locations/addressbatch \\ --output geocoderesult.csv """ @@ -132,7 +132,7 @@ def batch_geocode_addresses(addresses: List[str]) -> Optional[List[str]]: logger.debug("Response: %s", r.text) for line in r.text.split("\n"): line = line.strip() - if len(line) > 0: + if line: out.append(line) return out