[Checkins] [zopefoundation/Zope] a2f9e8: Replace deprecated splitport and splittype.

Michael Howitz noreply at github.com
Fri Feb 8 14:38:16 CET 2019


  Branch: refs/heads/deprecated_splitport_splittype
  Home:   https://github.com/zopefoundation/Zope
  Commit: a2f9e82a0ea791e97e4816f044433696dc9956cb
      https://github.com/zopefoundation/Zope/commit/a2f9e82a0ea791e97e4816f044433696dc9956cb
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-08 (Fri, 08 Feb 2019)

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

  Log Message:
  -----------
  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.




More information about the checkins mailing list