Skip to content

Commit d358591

Browse files
committed
also pythonize SListIterators
1 parent 0ad5655 commit d358591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ogdf_python/pythonize/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def pythonize_ogdf(klass, name):
3333
klass.__getitem__ = iterable_getitem
3434
klass.__str__ = lambda self: "[%s]" % ", ".join(str(i) for i in self)
3535
klass.__repr__ = lambda self: "%s([%s])" % (type(self).__name__, ", ".join(repr(i) for i in self))
36-
elif re.fullmatch("List(Const)?(Reverse)?Iterator(Base)?(<.+>)?", name):
36+
elif re.fullmatch("S?List(Const)?(Reverse)?Iterator(Base)?(<.+>)?", name):
3737
klass.__next__ = advance_iterator
3838
klass.__iter__ = lambda self: self
3939
elif re.fullmatch("(Node|Edge|AdjEntry|Cluster|Face)Array(<.+>)?", name):

0 commit comments

Comments
 (0)