cleanup
- use re.sub() iso. if for stripping ... - spacing nits Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>maint
parent
b016d39756
commit
bce4c5fc0b
|
@ -986,9 +986,7 @@ class P4Sync(Command):
|
||||||
elif len(self.previousDepotPath) == 0:
|
elif len(self.previousDepotPath) == 0:
|
||||||
self.revision = "#head"
|
self.revision = "#head"
|
||||||
|
|
||||||
if self.depotPath.endswith("..."):
|
self.depotPath = re.sub ("\.\.\.$", "", self.depotPath)
|
||||||
self.depotPath = self.depotPath[:-3]
|
|
||||||
|
|
||||||
if not self.depotPath.endswith("/"):
|
if not self.depotPath.endswith("/"):
|
||||||
self.depotPath += "/"
|
self.depotPath += "/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue