diff options
| author | Bob Halley <halley@dnspython.org> | 2020-06-25 17:14:13 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-06-25 17:14:13 -0700 |
| commit | 171773e96cd5ab561f1c80deea1c6cbb0ca9bcd9 (patch) | |
| tree | 1f066e479875950f810700f86ba9c5c68bd2813a | |
| parent | 005e472d864d84838fff6e96a16f63f9a2a7a5f5 (diff) | |
| download | dnspython-171773e96cd5ab561f1c80deea1c6cbb0ca9bcd9.tar.gz | |
set update section globals for convenience; fix formatting
| -rw-r--r-- | dns/message.py | 2 | ||||
| -rw-r--r-- | dns/update.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dns/message.py b/dns/message.py index eabca4a..3d92c11 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 05e9a53..2aa8ca5 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): |
