Skip to content

Commit

Permalink
py3.9 compatibility for zip
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwifb committed Sep 6, 2024
1 parent fec9419 commit f003cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage_docbuild/ext/sage_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def add_content(self, more_content: StringList | None) -> None:

# add additional content (e.g. from document), if present
if more_content:
for line, src in zip(more_content.data, more_content.items, strict=True):
for line, src in zip(more_content.data, more_content.items):
self.add_line(line, src[0], src[1])

def get_object_members(self, want_all: bool) -> tuple[bool, list[ObjectMember]]:
Expand Down Expand Up @@ -1042,7 +1042,7 @@ def add_content(self, more_content: StringList | None) -> None:
super().add_content(None)
self.indent = old_indent
if more_content:
for line, src in zip(more_content.data, more_content.items, strict=True):
for line, src in zip(more_content.data, more_content.items):
self.add_line(line, src[0], src[1])

@classmethod
Expand Down

0 comments on commit f003cc9

Please sign in to comment.