daplapath 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- daplapath/path.py +1 -7
- {daplapath-2.1.2.dist-info → daplapath-2.1.3.dist-info}/METADATA +1 -1
- daplapath-2.1.3.dist-info/RECORD +6 -0
- daplapath-2.1.2.dist-info/RECORD +0 -6
- {daplapath-2.1.2.dist-info → daplapath-2.1.3.dist-info}/LICENSE.md +0 -0
- {daplapath-2.1.2.dist-info → daplapath-2.1.3.dist-info}/WHEEL +0 -0
daplapath/path.py
CHANGED
|
@@ -216,13 +216,7 @@ class Path(str, _PathBase):
|
|
|
216
216
|
@staticmethod
|
|
217
217
|
def _standardize_path(path: str | PurePosixPath) -> str:
|
|
218
218
|
"""Make sure delimiter is '/' and path ends without '/'."""
|
|
219
|
-
return (
|
|
220
|
-
str(path)
|
|
221
|
-
.replace("\\", "/")
|
|
222
|
-
.replace(r"\"", "/")
|
|
223
|
-
.replace("//", "/")
|
|
224
|
-
.rstrip("/")
|
|
225
|
-
)
|
|
219
|
+
return str(path).replace("\\", "/").replace(r"\"", "/")
|
|
226
220
|
|
|
227
221
|
def __new__(cls, gcs_path: str | PurePath | None = None, file_system=None):
|
|
228
222
|
"""Construct Path with '/' as delimiter."""
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
daplapath/__init__.py,sha256=Qdpwhl8y3-i_42-4-KVT-sPQtJqwWRENLFxROZ_rfbU,86
|
|
2
|
+
daplapath/path.py,sha256=lDbe6w3pA_PK7MBry3Rw7Hxf7fjZh-zNqzl5pLsMVvs,57168
|
|
3
|
+
daplapath-2.1.3.dist-info/LICENSE.md,sha256=hxspefYgWP3U6OZFhCifqWMI5ksnKzgFxNKgQnG7Ozc,1074
|
|
4
|
+
daplapath-2.1.3.dist-info/METADATA,sha256=HjPwtNd7fDZ1fHiJ4BEFH7KFhW9V55AhoA0YLPx44c8,14697
|
|
5
|
+
daplapath-2.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
+
daplapath-2.1.3.dist-info/RECORD,,
|
daplapath-2.1.2.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
daplapath/__init__.py,sha256=Qdpwhl8y3-i_42-4-KVT-sPQtJqwWRENLFxROZ_rfbU,86
|
|
2
|
-
daplapath/path.py,sha256=CyvzB020_0JYPJyhOqmnX7nuwYaEH275Y_lK9aLnbEI,57275
|
|
3
|
-
daplapath-2.1.2.dist-info/LICENSE.md,sha256=hxspefYgWP3U6OZFhCifqWMI5ksnKzgFxNKgQnG7Ozc,1074
|
|
4
|
-
daplapath-2.1.2.dist-info/METADATA,sha256=nbmBDypfAzqBQIzzgpCjtpT8FWsYy5CwxdV0n75gXUw,14697
|
|
5
|
-
daplapath-2.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
-
daplapath-2.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|