]> granicus.if.org Git - python/commit
bpo-32820: __format__ method for ipaddress (#5627)
authorewosborne <ewosborne@users.noreply.github.com>
Thu, 12 Sep 2019 09:03:31 +0000 (05:03 -0400)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 12 Sep 2019 09:03:31 +0000 (10:03 +0100)
commitf9c95a4ba24c52eb1c052e3052d677e90a429a9a
treea8b9c9e60ca5807a2a3bf395dfadacefa78a08fe
parent92777d5e5aed1753bafe07265dbe98b2d271815b
bpo-32820: __format__ method for ipaddress (#5627)

* bits method and test_bits

* Cleaned up assert string

* blurb

* added docstring

* Faster method, per Eric Smith

* redoing as __format__

* added ipv6 method

* test cases and cleanup

* updated news

* cleanup and NEWS.d

* cleaned up old NEWS

* removed cut and paste leftover

* one more cleanup

* moved to regexp, moved away from v4- and v6-specific versions of __format__

* More cleanup, added ipv6 test cases

* more cleanup

* more cleanup

* cleanup

* cleanup

* cleanup per review, part 1

* addressed review comments around help string and regexp matching

* wrapped v6 test strings. contiguous integers: break at 72char. with underscores: break so that it looks clean.

*  's' and '' tests for pv4 and ipv6

* whitespace cleanup

* Remove trailing whitespace

* Remove more trailing whitespace

* Remove an excess blank line
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2018-02-13-12-25-43.bpo-32820.0stF0u.rst [new file with mode: 0644]