[Checkins] [zopefoundation/Zope] 8ebdbd: Fix bin/mkwsgiinstance on Python 3 (#371)

GitHub noreply at github.com
Tue Oct 23 13:26:54 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: 8ebdbdf5d5791308f9c44985f211ca0ca5d8f89e
      https://github.com/zopefoundation/Zope/commit/8ebdbdf5d5791308f9c44985f211ca0ca5d8f89e
  Author: Michael Howitz <mh at gocept.com>
  Date:   2018-10-23 (Tue, 23 Oct 2018)

  Changed paths:
    M CHANGES.rst
    M src/Zope2/utilities/mkwsgiinstance.py

  Log Message:
  -----------
  Fix bin/mkwsgiinstance on Python 3 (#371)

When Zope was installed via `pip` an error occurs later on because the path
returned by `get_zope2path` is bytes but text is expected.

In Python 3.7+ there is an alias for `universal_newlines=True` which is
`text=True`. See https://docs.python.org/3.8/library/subprocess.html#subprocess.check_output



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the checkins mailing list