antipathy
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: antipathy | ||
| Version: 0.84.2 | ||
| Version: 0.85.1 | ||
| Summary: oo view of file paths and names, subclassed from bytes/str/unicode | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/ethanfurman/antipathy |
@@ -1,2 +0,2 @@ | ||
| version = 0, 84, 2 | ||
| version = 0, 85, 1 | ||
@@ -3,0 +3,0 @@ from .path import * |
+10
-0
@@ -0,1 +1,11 @@ | ||
| 0.85.0 | ||
| ====== | ||
| stop suppressing trailing slash | ||
| BACKWARDS INCOMPATIBLE CHANGE | ||
| ----------------------------- | ||
| addition of paths returns to concatenating the two strings together | ||
| 0.84.1 | ||
@@ -2,0 +12,0 @@ ====== |
+6
-13
@@ -421,2 +421,3 @@ """ | ||
| slash = cls._SLASH | ||
| as_is_value = False | ||
| if not paths: | ||
@@ -427,2 +428,3 @@ paths = (cls._EMPTY, ) | ||
| paths = (paths[0]._value_, ) | ||
| as_is_value = paths[0] | ||
| elif len(paths) > 1: | ||
@@ -487,5 +489,5 @@ # convert sys_sep to '/' (no-op unless on windows) | ||
| df_sep = cls._EMPTY | ||
| if dirs and dirs != slash and filename: | ||
| if dirs and dirs != slash: | ||
| df_sep = slash | ||
| value = vol + dirs + df_sep + filename | ||
| value = as_is_value or (vol + dirs + df_sep + filename) | ||
| p = cls.data_type.__new__(cls, value) | ||
@@ -584,8 +586,6 @@ p._value_ = value | ||
| raise ValueError("Cannot combine %r and %r" % (self, other)) | ||
| t_slash = len(other._dirname) > 1 and not other._filename and self._SLASH or self._EMPTY | ||
| return self.__class__( | ||
| self._value_.rstrip(self._SLASH) + | ||
| self._SLASH + | ||
| other._value_.lstrip(self._SLASH) + | ||
| t_slash | ||
| other._value_.lstrip(self._SLASH) | ||
| ) | ||
@@ -668,6 +668,3 @@ __truediv__ = __div__ | ||
| other = Path(other) | ||
| if self._dirs and not self._filename: | ||
| return other / self / self._EMPTY | ||
| else: | ||
| return other / self | ||
| return other / self | ||
| __rtruediv__ = __rdiv__ | ||
@@ -704,7 +701,3 @@ | ||
| s = self._value_ | ||
| if len(self._dirs) > 1 and not self._filename: | ||
| s += self._SLASH | ||
| o = other._value_ | ||
| if len(other._dirs) > 1 and not other._filename: | ||
| o += other._SLASH | ||
| if not s.startswith(o): | ||
@@ -711,0 +704,0 @@ raise ValueError("cannot subtract %r from %r" % (other, self)) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: antipathy | ||
| Version: 0.84.2 | ||
| Version: 0.85.1 | ||
| Summary: oo view of file paths and names, subclassed from bytes/str/unicode | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/ethanfurman/antipathy |
+1
-1
@@ -53,3 +53,3 @@ import setuptools | ||
| name='antipathy', | ||
| version='0.84.2', | ||
| version='0.85.1', | ||
| license='BSD License', | ||
@@ -56,0 +56,0 @@ description='oo view of file paths and names, subclassed from bytes/str/unicode', |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
146775
02995
-0.23%