[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Tree.py:1.6.6.9
Martijn Pieters
mj@zope.com
Tue, 15 Jul 2003 13:05:51 -0400
Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv22278/lib/python/ZTUtils
Modified Files:
Tag: Zope-2_6-branch
Tree.py
Log Message:
Merge from head; fix potential problem with step being an empty string.
=== Zope/lib/python/ZTUtils/Tree.py 1.6.6.8 => 1.6.6.9 ===
--- Zope/lib/python/ZTUtils/Tree.py:1.6.6.8 Fri Apr 25 12:31:41 2003
+++ Zope/lib/python/ZTUtils/Tree.py Tue Jul 15 13:05:47 2003
@@ -295,7 +295,7 @@
if nth is not None:
nth_pair = (None, None)
for step in s.split(':'):
- if step[0] == '_':
+ if step.startswith('_'):
pop = len(step) - 1
continue
if pop < 0: