Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
42694d94
Commit
42694d94
authored
Jul 15, 2003
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential problem with step being an empty string (later on the code
refers to 'if len(step) == 0').
parent
ea82d744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZTUtils/Tree.py
lib/python/ZTUtils/Tree.py
+3
-3
No files found.
lib/python/ZTUtils/Tree.py
View file @
42694d94
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Tree manipulation classes
$Id: Tree.py,v 1.1
5 2003/04/25 16:32:02 evan
Exp $'''
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
$Id: Tree.py,v 1.1
6 2003/07/15 17:01:56 mj
Exp $'''
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
from
Acquisition
import
Explicit
from
ComputedAttribute
import
ComputedAttribute
...
...
@@ -295,7 +295,7 @@ def decodeExpansion(s, nth=None):
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment