@@ -98,7 +98,9 @@ def __next__(self):
98
98
99
99
100
100
class IterGen :
101
- "Sequence using iterator protocol defined with a generator"
101
+ """
102
+ Sequence using iterator protocol defined with a generator.
103
+ """
102
104
103
105
def __init__ (self , seqn ):
104
106
self .seqn = seqn
@@ -109,7 +111,9 @@ def __iter__(self):
109
111
110
112
111
113
class IterNextOnly :
112
- "Missing __getitem__ and __iter__"
114
+ """
115
+ Missing __getitem__ and __iter__.
116
+ """
113
117
114
118
def __init__ (self , seqn ):
115
119
self .seqn = seqn
@@ -124,7 +128,9 @@ def __next__(self):
124
128
125
129
126
130
class IterNoNext :
127
- "Iterator missing __next__()"
131
+ """
132
+ Iterator missing __next__().
133
+ """
128
134
129
135
def __init__ (self , seqn ):
130
136
self .seqn = seqn
@@ -135,7 +141,9 @@ def __iter__(self):
135
141
136
142
137
143
class IterGenExc :
138
- "Test propagation of exceptions"
144
+ """
145
+ Test propagation of exceptions.
146
+ """
139
147
140
148
def __init__ (self , seqn ):
141
149
self .seqn = seqn
@@ -149,7 +157,9 @@ def __next__(self):
149
157
150
158
151
159
class IterFuncStop :
152
- "Test immediate stop"
160
+ """
161
+ Test immediate stop.
162
+ """
153
163
154
164
def __init__ (self , seqn ):
155
165
pass
@@ -162,7 +172,10 @@ def __next__(self):
162
172
163
173
164
174
def itermulti (seqn ):
165
- "Test multiple tiers of iterators"
175
+ """
176
+ Test multiple tiers of iterators.
177
+ """
178
+
166
179
return chain (map (lambda x : x , iterfunc (IterGen (Sequence (seqn )))))
167
180
168
181
0 commit comments