[Checkins] [zopefoundation/Zope] 2da2c2: Replace deprecated splitport and splittype. (#476)

Michael Howitz noreply at github.com
Mon Mar 11 08:34:17 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: 2da2c2c28a8b21e78e8ef93aa17da926e3102c26
      https://github.com/zopefoundation/Zope/commit/2da2c2c28a8b21e78e8ef93aa17da926e3102c26
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M CHANGES.rst
    M src/Products/Five/browser/tests/test_absoluteurl.py
    M src/ZPublisher/HTTPRequest.py

  Log Message:
  -----------
  Replace deprecated splitport and splittype. (#476)

* Replace deprecated splitport and splittype.

Python 3.8 deprecates `splitport` and `splittype`, see
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L1039-L1042
resp.
https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L969-L972

VirtualHostMonster.py imports `splitport` from `HTTPRequest`.
It is modelled after the requirements of its tests.

The default ports changed from str to int because `urlparse` returns int port
numbers.

* Improve import.




More information about the checkins mailing list