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

GitHub noreply at github.com
Thu May 17 16:56:31 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: 89ba0e1058789b4667a1db29192ac94cc7ed5f41
      https://github.com/zopefoundation/Zope/commit/89ba0e1058789b4667a1db29192ac94cc7ed5f41
  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.


  Commit: e413288411e39182a0a296a17d319b3c7ae2c667
      https://github.com/zopefoundation/Zope/commit/e413288411e39182a0a296a17d319b3c7ae2c667
  Author: ‮zlohhcuB treboR <robert.buchholz 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:
  -----------
  Merge pull request #281 from zopefoundation/zodb-mount-points-as-native-strings

Use native strings for ZODB mount points in Python 2


Compare: https://github.com/zopefoundation/Zope/compare/ba9bee707a31...e413288411e3
      **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