[Checkins] [zopefoundation/Zope] f3c068: Fix bin/mkwsgiinstance on Python 3

GitHub noreply at github.com
Thu Oct 11 15:31:30 CEST 2018


  Branch: refs/heads/fix-mkwsgiinstance
  Home:   https://github.com/zopefoundation/Zope
  Commit: f3c0689e1e35ba291c9b6f869086d4d6ea15de3a
      https://github.com/zopefoundation/Zope/commit/f3c0689e1e35ba291c9b6f869086d4d6ea15de3a
  Author: Michael Howitz <mh at gocept.com>
  Date:   2018-10-11 (Thu, 11 Oct 2018)

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

  Log Message:
  -----------
  Fix bin/mkwsgiinstance on Python 3

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