mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-02 05:33:39 +02:00
Fix Python 3.7 support
See PEP 479
This commit is contained in:
@@ -87,7 +87,6 @@ class ConfigLineOrder:
|
||||
for line in self._lines:
|
||||
if line.type == 'section':
|
||||
yield line.name
|
||||
raise StopIteration()
|
||||
|
||||
class Line:
|
||||
"""Base class for all line objects"""
|
||||
@@ -160,7 +159,6 @@ class SectionLine(Line):
|
||||
def __iter__(self):
|
||||
for line in self._lines:
|
||||
yield line.name
|
||||
raise StopIteration()
|
||||
|
||||
|
||||
class CommentLine(Line):
|
||||
|
Reference in New Issue
Block a user