[Zope3-checkins] CVS: Zope3/src/zope/publisher - base.py:1.18

Philipp von Weitershausen philikon at philikon.de
Sat May 1 10:37:19 EDT 2004


Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv21202/src/zope/publisher

Modified Files:
	base.py 
Log Message:
bools


=== Zope3/src/zope/publisher/base.py 1.17 => 1.18 ===
--- Zope3/src/zope/publisher/base.py:1.17	Sat Mar 20 11:27:15 2004
+++ Zope3/src/zope/publisher/base.py	Sat May  1 10:37:18 2004
@@ -241,7 +241,7 @@
         self._last_obj_traversed = object
 
         prev_object = None
-        while 1:
+        while True:
 
             if object is not prev_object:
                 # Invoke hooks (but not more than once).
@@ -388,16 +388,17 @@
             # Remove trailing backslash, so that we will not get an empty
             # last entry when splitting the path. 
             path = path[:-1]
-            self._endswithslash = 1
+            self._endswithslash = True
         else:
-            self._endswithslash = 0
+            self._endswithslash = False
 
         clean = []
         for item in path.split('/'):
             if not item or item == '.':
                 continue
             elif item == '..':
-                try: del clean[-1]
+                try:
+                    del clean[-1]
                 except IndexError:
                     raise NotFoundError('..')
             else: clean.append(item)




More information about the Zope3-Checkins mailing list