Skip to content

Commit

Permalink
update collections for python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
verawieleman committed Jul 22, 2022
1 parent 87664c0 commit 0b35488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docx/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

from __future__ import absolute_import, print_function, unicode_literals

from collections import Sequence
from collections.abc import Sequence


class Sections(Sequence):
"""
Sequence of |Section| objects corresponding to the sections in the
document. Supports ``len()``, iteration, and indexed access.
"""

def __init__(self, document_elm):
super(Sections, self).__init__()
self._document_elm = document_elm
Expand All @@ -37,6 +38,7 @@ class Section(object):
"""
Document section, providing access to section and page setup settings.
"""

def __init__(self, sectPr):
super(Section, self).__init__()
self._sectPr = sectPr
Expand Down

0 comments on commit 0b35488

Please sign in to comment.