Remove the flag shorthands: N, P and Z. Use :data:NOHOST, :data:INET_PTON
and :data:ZEROFILL instead.
Remove abbreviated CIDR format support in :class:IPNetwork (implicit_prefix=True),
use :func:cidr_abbrev_to_verbose if you need this behavior.
Remove the IPAddress.is_private method.
There are more precise replacements for subset of the addresses that used to handled by is_private:
:meth:IPAddress.is_link_local
:meth:IPAddress.is_ipv4_private_use
:meth:IPAddress.is_ipv6_unique_local
:meth:IPAddress.is_global
The following address blocks used to be handled by is_private have no dedicated
convenience methods and you'll have to handle them manually or request a method
addition:
100.64.0.0/10 – Shared Address Space
192.0.0.0/24 – IETF Protocol Assignments (watch out – there are exceptions in there)
198.18.0.0/15 – Benchmarking
239.0.0.0-239.255.255.255 – 240.0.0.0/4 is Reserved, 239.0.0.0/8 – unclear
Changed:
Stop accepting leading zeros when parsing IPv4 addresses in :data:INET_PTON mode
(it's been allowed on some platforms).
If you need to allow and discard leading zeros use the :data:ZEROFILL flag.
This change will affect implicit conversions from str in all relevant contexts. If you need
to control the IPv4 parsing mode construct :class:IPAddress objects explicitly.
Stop parsing IPv4 addresses permissively (inet_aton()-like) by default.
:data:INET_PTON is the default mode.
If you need to be permissive and parse using inet_aton() semantics use the
:data:INET_ATON flag.
This change will affect implicit conversions from str in all relevant contexts. If you
need to control the IPv4 parsing mode construct :class:IPAddress objects explicitly.
Apply the two changes above to :func:valid_ipv4 as well.
Update the address databases to the 2024-02-10 versions.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps netaddr from 0.10.1 to 1.0.0.
Release notes
Sourced from netaddr's releases.
Changelog
Sourced from netaddr's changelog.
... (truncated)
Commits
b7a4d43
Release version 1.0.02a40743
Clean up copyright information4926868
Remove a redundant bit from the documentation footer9c90d38
Make the copyright information reflect reality better90449bb
Explicitly set IPython's namespacee83ed3c
Remoove unused variables2e4a3b4
Make the shell banner nicer5ddb891
Update the databasesa8483c9
Fix a few copy/paste errorsc6996d8
Fix dialect handling in EUI during copy-construction (#364)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show