[Checkins] SVN: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/name.py Moar tidying.

Tres Seaver cvs-admin at zope.org
Wed May 9 23:46:40 UTC 2012


Log message for revision 125797:
  Moar tidying.

Changed:
  U   zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/name.py

-=-
Modified: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/name.py
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/name.py	2012-05-09 23:46:31 UTC (rev 125796)
+++ zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/name.py	2012-05-09 23:46:37 UTC (rev 125797)
@@ -25,9 +25,9 @@
 
     if name.endswith('.') or name.endswith('+'):
         name = name[:-1]
-        repeat = 1
+        repeat = True
     else:
-        repeat = 0
+        repeat = False
 
     names = name.split('.')
     last = names[-1]
@@ -57,11 +57,11 @@
 
     if name.endswith('.') or name.endswith('+'):
         name = name[:-1]
-        repeat = 1
+        repeat = True
     else:
-        repeat = 0
+        repeat = False
     name = name.split(".")
-    while len(name)>1 and name[-1] == name[-2]:
+    while len(name) > 1 and name[-1] == name[-2]:
         name.pop()
         repeat = 1
     name = ".".join(name)
@@ -79,6 +79,8 @@
         raise
 
     path = os.path.dirname(package.__file__)
+
     if file:
         path = os.path.join(path, file)
+
     return path



More information about the checkins mailing list