@@ -98,7 +98,9 @@ def __next__(self):
9898
9999
100100class IterGen :
101- "Sequence using iterator protocol defined with a generator"
101+ """
102+ Sequence using iterator protocol defined with a generator.
103+ """
102104
103105 def __init__ (self , seqn ):
104106 self .seqn = seqn
@@ -109,7 +111,9 @@ def __iter__(self):
109111
110112
111113class IterNextOnly :
112- "Missing __getitem__ and __iter__"
114+ """
115+ Missing __getitem__ and __iter__.
116+ """
113117
114118 def __init__ (self , seqn ):
115119 self .seqn = seqn
@@ -124,7 +128,9 @@ def __next__(self):
124128
125129
126130class IterNoNext :
127- "Iterator missing __next__()"
131+ """
132+ Iterator missing __next__().
133+ """
128134
129135 def __init__ (self , seqn ):
130136 self .seqn = seqn
@@ -135,7 +141,9 @@ def __iter__(self):
135141
136142
137143class IterGenExc :
138- "Test propagation of exceptions"
144+ """
145+ Test propagation of exceptions.
146+ """
139147
140148 def __init__ (self , seqn ):
141149 self .seqn = seqn
@@ -149,7 +157,9 @@ def __next__(self):
149157
150158
151159class IterFuncStop :
152- "Test immediate stop"
160+ """
161+ Test immediate stop.
162+ """
153163
154164 def __init__ (self , seqn ):
155165 pass
@@ -162,7 +172,10 @@ def __next__(self):
162172
163173
164174def itermulti (seqn ):
165- "Test multiple tiers of iterators"
175+ """
176+ Test multiple tiers of iterators.
177+ """
178+
166179 return chain (map (lambda x : x , iterfunc (IterGen (Sequence (seqn )))))
167180
168181
0 commit comments