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
8060223e
Commit
8060223e
authored
Jul 18, 2011
by
Nikolay Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
micro optimization
parent
bc6bb33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
src/OFS/Traversable.py
src/OFS/Traversable.py
+2
-8
No files found.
src/OFS/Traversable.py
View file @
8060223e
...
@@ -119,12 +119,9 @@ class Traversable:
...
@@ -119,12 +119,9 @@ class Traversable:
calls while walking up from an object on a deep level.
calls while walking up from an object on a deep level.
"""
"""
try
:
try
:
id
=
self
.
id
id
=
self
.
id
or
self
.
getId
()
except
AttributeError
:
except
AttributeError
:
id
=
self
.
getId
()
id
=
self
.
getId
()
else
:
if
id
is
None
:
id
=
self
.
getId
()
path
=
(
id
,
)
path
=
(
id
,
)
p
=
aq_parent
(
aq_inner
(
self
))
p
=
aq_parent
(
aq_inner
(
self
))
...
@@ -135,12 +132,9 @@ class Traversable:
...
@@ -135,12 +132,9 @@ class Traversable:
while
p
is
not
None
:
while
p
is
not
None
:
if
func
is
p
.
getPhysicalPath
.
im_func
:
if
func
is
p
.
getPhysicalPath
.
im_func
:
try
:
try
:
pid
=
p
.
id
pid
=
p
.
id
or
p
.
getId
()
except
AttributeError
:
except
AttributeError
:
pid
=
p
.
getId
()
pid
=
p
.
getId
()
else
:
if
pid
is
None
:
pid
=
p
.
getId
()
path
=
(
pid
,
)
+
path
path
=
(
pid
,
)
+
path
try
:
try
:
...
...
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