[Checkins] [zopefoundation/Zope] f9fc94: Use native strings for ZODB mount points in Python...

GitHub noreply at github.com
Thu May 17 15:27:29 CEST 2018


  Branch: refs/heads/zodb-mount-points-as-native-strings
  Home:   https://github.com/zopefoundation/Zope
  Commit: f9fc947af24c4ec70ac1241242e591af7673827e
      https://github.com/zopefoundation/Zope/commit/f9fc947af24c4ec70ac1241242e591af7673827e
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M src/Zope2/Startup/datatypes.py
    A src/Zope2/Startup/tests/test_datatypes.py

  Log Message:
  -----------
  Use native strings for ZODB mount points in Python 2

ZODB requires paths and identifiers to be native strings (unicode on
Py3, bytes on Py2). Since the ZConfig parser decodes the config file,
keys and valus in the will consistently be unicode. As a result, the
ZopeDatabase object needs to encode the value back to str/bytes on
Python 2.



      **NOTE:** This service 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