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
beedc480
Commit
beedc480
authored
Dec 15, 2010
by
Andreas Zeidler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore pep8 clean-ups (from c115289) accidentally reverted in c118863
parent
813ee8c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/Products/ZCatalog/Lazy.py
src/Products/ZCatalog/Lazy.py
+6
-6
No files found.
src/Products/ZCatalog/Lazy.py
View file @
beedc480
...
...
@@ -145,19 +145,19 @@ class LazyMap(Lazy):
# Don't access data until necessary
def
__init__
(
self
,
func
,
seq
,
length
=
None
):
self
.
_seq
=
seq
self
.
_func
=
func
self
.
_seq
=
seq
self
.
_func
=
func
if
length
is
not
None
:
self
.
_len
=
length
self
.
_len
=
length
else
:
self
.
_len
=
len
(
seq
)
self
.
_marker
=
object
()
self
.
_data
=
[
self
.
_marker
]
*
self
.
_len
def
__getitem__
(
self
,
index
):
data
=
self
.
_data
def
__getitem__
(
self
,
index
):
data
=
self
.
_data
try
:
s
=
self
.
_seq
s
=
self
.
_seq
except
AttributeError
:
return
data
[
index
]
...
...
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