Skip to content

Commit

Permalink
Fix broken pathlib.Path imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Jun 19, 2024
1 parent ac0ac5b commit 1ab853a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/comparison.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ S3Path Example:

.. code:: python
>>> from s3path import S3Path, Path
>>> from pathlib import Path
>>> from s3path import S3Path
>>> local_path = Path('/tmp/hello.txt')
>>> S3Path('/my-bucket/hello.txt').write_text(local_path.read_text())
Expand All @@ -74,7 +75,8 @@ S3Path Example:

.. code:: python
>>> from s3path import S3Path, Path
>>> from pathlib import Path
>>> from s3path import S3Path
>>> local_path = Path('./my_local_image.jpg')
>>> local_path.write_text(S3Path('/my-bucket/my_image_in_s3.jpg').read_text())
Expand Down

0 comments on commit 1ab853a

Please sign in to comment.