Update docs + doctest.
authorScott Gasch <[email protected]>
Tue, 13 Jun 2023 20:50:42 +0000 (13:50 -0700)
committerScott Gasch <[email protected]>
Tue, 13 Jun 2023 20:50:42 +0000 (13:50 -0700)
src/pyutils/files/file_utils.py
src/pyutils/geocode.py

index 45feb3469430b23beb99d8c9cb3ec993dcff6fd7..027279fc03fc0bfdd1913b915a37ae93ecba480f 100644 (file)
@@ -303,8 +303,8 @@ def get_canonical_path(filespec: str) -> str:
 
     See also :meth:`get_path`, :meth:`without_path`.
 
-    >>> get_canonical_path('/home/scott/../../home/lynn/../scott/foo.txt')
-    '/usr/home/scott/foo.txt'
+    >>> get_canonical_path('./../../pyutils/files/file_utils.py')
+    '/usr/home/scott/lib/release/pyutils/files/file_utils.py'
 
     """
     return os.path.realpath(filespec)
index 004900e40c19e0df92e94f74d98fc3b32e9e65e4..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
 """