Adds a __repr__ to graph.
[pyutils.git] / src / pyutils / geocode.py
index e3e416e9ab84b487eeb17eb08ecf490b647a1d4d..fa8956d9c1364ec6ebf280315a6506d6227bb160 100644 (file)
@@ -9,9 +9,9 @@
 
 Also try::
 
-    $ curl --form [email protected] \
-           --form benchmark=2020 \
-           https://geocoding.geo.census.gov/geocoder/locations/addressbatch \
+    $ curl --form [email protected] \\
+           --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