equal
deleted
inserted
replaced
921 new.main_path = self |
921 new.main_path = self |
922 if self._pushloc: |
922 if self._pushloc: |
923 new._setup_url(self._pushloc) |
923 new._setup_url(self._pushloc) |
924 return new |
924 return new |
925 |
925 |
926 def pushloc(self): |
|
927 """compatibility layer for the deprecated attributes""" |
|
928 from .. import util # avoid a cycle |
|
929 |
|
930 msg = "don't use path.pushloc, use path.get_push_variant()" |
|
931 util.nouideprecwarn(msg, b"6.5") |
|
932 return self._pushloc |
|
933 |
|
934 def _validate_path(self): |
926 def _validate_path(self): |
935 # When given a raw location but not a symbolic name, validate the |
927 # When given a raw location but not a symbolic name, validate the |
936 # location is valid. |
928 # location is valid. |
937 if ( |
929 if ( |
938 not self.name |
930 not self.name |