[CalendarServer-changes] [14601] CalendarServer/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 17 07:37:35 PDT 2015


Revision: 14601
          http://trac.calendarserver.org//changeset/14601
Author:   wsanchez at apple.com
Date:     2015-03-17 07:37:35 -0700 (Tue, 17 Mar 2015)
Log Message:
-----------
Put .strip() in one place

Modified Paths:
--------------
    CalendarServer/trunk/setup.py

Modified: CalendarServer/trunk/setup.py
===================================================================
--- CalendarServer/trunk/setup.py	2015-03-16 20:03:45 UTC (rev 14600)
+++ CalendarServer/trunk/setup.py	2015-03-17 14:37:35 UTC (rev 14601)
@@ -74,10 +74,10 @@
     url = entry.find("url")
     root = entry.find("repository").find("root")
     if url.text.startswith(root.text):
-        location = url.text[len(root.text):].strip("/")
+        location = url.text[len(root.text):]
     else:
-        location = url.text.strip("/")
-    project, branch = location.split("/")
+        location = url.text
+    project, branch = location.strip("/").split("/")
 
     return dict(
         root=root.text,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150317/2d3fbd11/attachment.html>


More information about the calendarserver-changes mailing list