From: Scott Gasch Date: Tue, 13 Jun 2023 20:50:42 +0000 (-0700) Subject: Update docs + doctest. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=e38e892b9bc6d7a684ab251f52bd749700e2c1db;p=pyutils.git Update docs + doctest. --- diff --git a/src/pyutils/files/file_utils.py b/src/pyutils/files/file_utils.py index 45feb34..027279f 100644 --- a/src/pyutils/files/file_utils.py +++ b/src/pyutils/files/file_utils.py @@ -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) diff --git a/src/pyutils/geocode.py b/src/pyutils/geocode.py index 004900e..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 """