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
821e31bb
Commit
821e31bb
authored
Jan 26, 2005
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Iterator interface had inappropriate self args.
parent
00578f52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
lib/python/ZPublisher/Iterators.py
lib/python/ZPublisher/Iterators.py
+2
-2
lib/python/ZPublisher/tests/testIterators.py
lib/python/ZPublisher/tests/testIterators.py
+18
-0
No files found.
lib/python/ZPublisher/Iterators.py
View file @
821e31bb
...
@@ -14,13 +14,13 @@ class IStreamIterator(Interface):
...
@@ -14,13 +14,13 @@ class IStreamIterator(Interface):
but it has a chance of going insane if it happens to be loading
but it has a chance of going insane if it happens to be loading
or storing something in the other thread at the same time. """
or storing something in the other thread at the same time. """
def
next
(
self
):
def
next
():
"""
"""
Return a sequence of bytes out of the bytestream, or raise
Return a sequence of bytes out of the bytestream, or raise
StopIeration if we've reached the end of the bytestream.
StopIeration if we've reached the end of the bytestream.
"""
"""
def
__len__
(
self
):
def
__len__
():
"""
"""
Return an integer representing the length of the object
Return an integer representing the length of the object
in bytes.
in bytes.
...
...
lib/python/ZPublisher/tests/testIterators.py
0 → 100644
View file @
821e31bb
import
unittest
from
Interface.Verify
import
verifyClass
from
ZPublisher.Iterators
import
IStreamIterator
,
filestream_iterator
class
TestFileStreamIterator
(
unittest
.
TestCase
):
def
testInterface
(
self
):
verifyClass
(
IStreamIterator
,
filestream_iterator
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestFileStreamIterator
)
)
return
suite
def
main
():
unittest
.
main
(
defaultTest
=
'test_suite'
)
if
__name__
==
'__main__'
:
main
()
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