- use re.sub() iso. if for stripping ...
- spacing nits

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
maint
Han-Wen Nienhuys 2007-05-23 17:14:33 -03:00
parent b016d39756
commit bce4c5fc0b
1 changed files with 19 additions and 21 deletions

View File

@ -986,9 +986,7 @@ class P4Sync(Command):
elif len(self.previousDepotPath) == 0:
self.revision = "#head"

if self.depotPath.endswith("..."):
self.depotPath = self.depotPath[:-3]

self.depotPath = re.sub ("\.\.\.$", "", self.depotPath)
if not self.depotPath.endswith("/"):
self.depotPath += "/"