daplapath 2.1.2__tar.gz → 2.1.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: daplapath
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: A pathlib.Path class for dapla
5
5
  License: MIT
6
6
  Author: ort
@@ -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."""
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "daplapath"
3
- version = "2.1.2"
3
+ version = "2.1.3"
4
4
  description = "A pathlib.Path class for dapla"
5
5
  authors = ["ort <ort@ssb.no>"]
6
6
  license = "MIT"
File without changes
File without changes