]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32820: Simplify __format__ implementation for ipaddress. (GH-16378)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 27 Sep 2019 17:02:58 +0000 (20:02 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2019 17:02:58 +0000 (20:02 +0300)
commit5d6f5b629394066a5249af25cc01f1a1f0edc138
treee59898fbfa8533ffab9fdc3ea55929e0cfab43bd
parent6693f730e0eb77d9453f73a3da33b78a97e996ee
bpo-32820: Simplify __format__ implementation for ipaddress. (GH-16378)

Also cache the compiled RE for parsing the format specifier.
Lib/ipaddress.py