Skip to content

Commit

Permalink
use self._section_enum in a few places we missed
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Dec 24, 2023
1 parent 63aa46c commit f03f3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def find_rrset(
section_number = section
section = self.section_from_number(section_number)
elif isinstance(section, str):
section_number = MessageSection.from_text(section)
section_number = self._section_enum.from_text(section)
section = self.section_from_number(section_number)
else:
section_number = self.section_number(section)
Expand Down Expand Up @@ -505,7 +505,7 @@ def section_count(self, section: SectionType) -> int:
section_number = section
section = self.section_from_number(section_number)
elif isinstance(section, str):
section_number = MessageSection.from_text(section)
section_number = self._section_enum.from_text(section)
section = self.section_from_number(section_number)
else:
section_number = self.section_number(section)
Expand Down

0 comments on commit f03f3b7

Please sign in to comment.