Uri.isIpv6 exported (#20736)

* Export Uri.isIpv6

* Export Uri.isIpv6
This commit is contained in:
Juan Carlos 2022-11-03 05:48:51 -03:00 • committed by GitHub
commit 4503fa5422
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -114,6 +114,7 @@
- Undeprecated `os.isvalidfilename`. - Undeprecated `os.isvalidfilename`.
- `std/oids` now uses `int64` to store time internally (before it was int32). - `std/oids` now uses `int64` to store time internally (before it was int32).
- `std/uri.Uri` dollar `$` improved, precalculates the `string` result length from the `Uri`. - `std/uri.Uri` dollar `$` improved, precalculates the `string` result length from the `Uri`.
- `std/uri.Uri.isIpv6` is now exported.
- `std/net.IpAddress` dollar `$` improved, uses a fixed capacity for the `string` result based from the `IpAddressFamily`. - `std/net.IpAddress` dollar `$` improved, uses a fixed capacity for the `string` result based from the `IpAddressFamily`.

View file

@ -50,7 +50,7 @@ type
scheme*, username*, password*: string scheme*, username*, password*: string
hostname*, port*, path*, query*, anchor*: string hostname*, port*, path*, query*, anchor*: string
opaque*: bool opaque*: bool
isIpv6: bool # not expose it for compatibility. isIpv6*: bool
UriParseError* = object of ValueError UriParseError* = object of ValueError