From: Bob Halley Date: Fri, 26 Jun 2020 00:14:13 +0000 (-0700) Subject: set update section globals for convenience; fix formatting X-Git-Tag: v2.0.0rc2~61^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171773e96cd5ab561f1c80deea1c6cbb0ca9bcd9;p=thirdparty%2Fdnspython.git set update section globals for convenience; fix formatting --- diff --git a/dns/message.py b/dns/message.py index eabca4a0..3d92c11f 100644 --- a/dns/message.py +++ b/dns/message.py @@ -89,9 +89,9 @@ class MessageSection(dns.enum.IntEnum): def _maximum(cls): return 3 - globals().update(MessageSection.__members__) + class Message: """A DNS message.""" diff --git a/dns/update.py b/dns/update.py index 05e9a530..2aa8ca56 100644 --- a/dns/update.py +++ b/dns/update.py @@ -38,6 +38,8 @@ class UpdateSection(dns.enum.IntEnum): def _maximum(cls): return 3 +globals().update(UpdateSection.__members__) + class Update(dns.message.Message):