[CalendarServer-changes] [14594] twext/trunk/setup.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 13 15:44:42 PDT 2015
Revision: 14594
http://trac.calendarserver.org//changeset/14594
Author: sagen at apple.com
Date: 2015-03-13 15:44:42 -0700 (Fri, 13 Mar 2015)
Log Message:
-----------
Fix more lstrip issues
Modified Paths:
--------------
twext/trunk/setup.py
Modified: twext/trunk/setup.py
===================================================================
--- twext/trunk/setup.py 2015-03-13 22:36:11 UTC (rev 14593)
+++ twext/trunk/setup.py 2015-03-13 22:44:42 UTC (rev 14594)
@@ -122,7 +122,8 @@
continue
path = entry.attrib["path"]
if wc_path != ".":
- path = path.lstrip(wc_path)
+ if path.startswith(wc_path):
+ path = path[len(wc_path):]
yield dict(path=path)
@@ -154,7 +155,7 @@
if info["branch"].startswith("tags/release/"):
- project_version = info["branch"].lstrip("tags/release/")
+ project_version = info["branch"][len("tags/release/"):]
project, version = project_version.split("-")
assert project == project_name, (
"Tagged project {!r} != {!r}".format(project, project_name)
@@ -166,7 +167,7 @@
return "{}{}".format(base_version, modified)
if info["branch"].startswith("branches/release/"):
- project_version = info["branch"].lstrip("branches/release/")
+ project_version = info["branch"][len("branches/release/"):]
project, version, dev = project_version.split("-")
assert project == project_name, (
"Branched project {!r} != {!r}".format(project, project_name)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150313/32cff057/attachment-0001.html>
More information about the calendarserver-changes
mailing list