mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-30 19:56:14 +01:00
Merge branch 'OscConfigParser_python3' of https://github.com/lethliel/osc
Remove explicit StopIteration exception (preparation for python3).
This commit is contained in:
commit
ffda882979
@ -87,7 +87,6 @@ class ConfigLineOrder:
|
|||||||
for line in self._lines:
|
for line in self._lines:
|
||||||
if line.type == 'section':
|
if line.type == 'section':
|
||||||
yield line.name
|
yield line.name
|
||||||
raise StopIteration()
|
|
||||||
|
|
||||||
class Line:
|
class Line:
|
||||||
"""Base class for all line objects"""
|
"""Base class for all line objects"""
|
||||||
@ -160,7 +159,6 @@ class SectionLine(Line):
|
|||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
for line in self._lines:
|
for line in self._lines:
|
||||||
yield line.name
|
yield line.name
|
||||||
raise StopIteration()
|
|
||||||
|
|
||||||
|
|
||||||
class CommentLine(Line):
|
class CommentLine(Line):
|
||||||
|
Loading…
Reference in New Issue
Block a user