<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dnspython.git/dns, branch master</title>
<subtitle>github.com: rthalley/dnspython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/'/>
<entry>
<title>Deal with "in" changes for enums in python 3.12</title>
<updated>2023-05-06T18:21:36+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-05-06T18:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=83670766f84189c30450d8beed6a896bf9207fe1'/>
<id>83670766f84189c30450d8beed6a896bf9207fe1</id>
<content type='text'>
In python 3.12, "in" for enums tests values as well, so something
like "12345 in dns.rdatatype.RdataType" will now return True.  This
broke some logic guarding against registering a known-but-unimplmemented
type code point with a class that didn't have the right name.  We now
just give up on this test as it will never be a real problem.  We change
a few related tests to be more sensible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In python 3.12, "in" for enums tests values as well, so something
like "12345 in dns.rdatatype.RdataType" will now return True.  This
broke some logic guarding against registering a known-but-unimplmemented
type code point with a class that didn't have the right name.  We now
just give up on this test as it will never be a real problem.  We change
a few related tests to be more sensible.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix NSEC3 base32 processing. (#929)</title>
<updated>2023-05-06T14:15:32+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2023-05-06T14:15:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=bf8deda6da437ec5fdaaf5261b8674deb8e6d31c'/>
<id>bf8deda6da437ec5fdaaf5261b8674deb8e6d31c</id>
<content type='text'>
The NSEC3 next name field is defined as base32 with no padding, but the
code was doing base32 decoding with padding.  This wouldn't have any
effect in the normal case, since the only defined NSEC3 hashing
algorithm is SHA1, and that generates a 160 bit hash that doesn't
require padding when encoded in base32.

This change removes generated padding after encode, rejects padded input
on decode, and adds necessary padding for decode.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The NSEC3 next name field is defined as base32 with no padding, but the
code was doing base32 decoding with padding.  This wouldn't have any
effect in the normal case, since the only defined NSEC3 hashing
algorithm is SHA1, and that generates a 160 bit hash that doesn't
require padding when encoded in base32.

This change removes generated padding after encode, rejects padded input
on decode, and adds necessary padding for decode.</pre>
</div>
</content>
</entry>
<entry>
<title>resolve_at() type fixes</title>
<updated>2023-04-19T15:55:51+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-04-19T15:55:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=b7211a26bdefa7d655a71392bd126f3745f8b862'/>
<id>b7211a26bdefa7d655a71392bd126f3745f8b862</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add make_resolver_at() and resolve_at(). (#926)</title>
<updated>2023-04-19T15:51:16+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-04-19T15:51:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=6daff0efc931aca94b75fadf57fcfa95da9fce1b'/>
<id>6daff0efc931aca94b75fadf57fcfa95da9fce1b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary string concatenation.</title>
<updated>2023-04-11T18:05:16+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2023-04-11T18:05:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=1db18b95597fb0fb70081d394246a1c73a2cc3ae'/>
<id>1db18b95597fb0fb70081d394246a1c73a2cc3ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add basic DDR support. (#919)</title>
<updated>2023-04-07T13:44:22+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-04-07T13:44:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=7017bb55565df81aec30a5e9f86b2b193b0315e4'/>
<id>7017bb55565df81aec30a5e9f86b2b193b0315e4</id>
<content type='text'>
* Add basic DDR support.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add basic DDR support.</pre>
</div>
</content>
</entry>
<entry>
<title>Message get_rrset() needs to pass idna_codec to find_rrset().</title>
<updated>2023-04-06T13:06:24+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-04-06T13:06:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=579974f5522fdce4a5a8a125daa25cc4db23c4b3'/>
<id>579974f5522fdce4a5a8a125daa25cc4db23c4b3</id>
<content type='text'>
Also removes some lint about "section = section" being a no-op.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also removes some lint about "section = section" being a no-op.
</pre>
</div>
</content>
</entry>
<entry>
<title>run black on enum.py</title>
<updated>2023-04-06T13:04:18+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-04-06T13:04:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=bb5188eac0e28c8e6695286c32d75ce323a936e6'/>
<id>bb5188eac0e28c8e6695286c32d75ce323a936e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enum typing (#923)</title>
<updated>2023-04-06T13:03:07+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2023-04-06T13:03:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=cee55728316820d037ece45b11d2fed655a2754c'/>
<id>cee55728316820d037ece45b11d2fed655a2754c</id>
<content type='text'>
* IntEnum improvements.

This changes make() to always return an instance of the subclass,
creating one on the fly if the value is not known, and updates the typ
registration code to deal with this.  It also adds typing annotations to
make().

* Add missing int check.

Some older versions of python weren't rejecting non-int values.

* Fix int check.

Raise TypeError for non-int, not ValueError, to make tests happy.

* Annotate to_text/from_text.

* Remove many the_ prefixed variables.

These were needed in the past to work around typing issues.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* IntEnum improvements.

This changes make() to always return an instance of the subclass,
creating one on the fly if the value is not known, and updates the typ
registration code to deal with this.  It also adds typing annotations to
make().

* Add missing int check.

Some older versions of python weren't rejecting non-int values.

* Fix int check.

Raise TypeError for non-int, not ValueError, to make tests happy.

* Annotate to_text/from_text.

* Remove many the_ prefixed variables.

These were needed in the past to work around typing issues.</pre>
</div>
</content>
</entry>
<entry>
<title>Improve get_rrset/find_rrset API. (#922)</title>
<updated>2023-04-06T13:01:59+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2023-04-06T13:01:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=c7613943d93986ac23cccff7350c42a32fa5b3bd'/>
<id>c7613943d93986ac23cccff7350c42a32fa5b3bd</id>
<content type='text'>
* Improve get_rrset/find_rrset API.

This allows most of the parameters to be specified as strings, matching
the interface for dns.message.make_query().

* Remove unneeded "the_section".

There's no need to use a separate internal variable for the section;
mypy doesn't complain about reuse.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Improve get_rrset/find_rrset API.

This allows most of the parameters to be specified as strings, matching
the interface for dns.message.make_query().

* Remove unneeded "the_section".

There's no need to use a separate internal variable for the section;
mypy doesn't complain about reuse.</pre>
</div>
</content>
</entry>
</feed>
