[Checkins] [zopefoundation/Zope] eb4baa: Fix 'lines' property to always use 'bytes' (#206)

GitHub noreply at github.com
Mon Apr 23 10:23:37 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: eb4baa09ea4bb63da019ed5d204c190809a41c0f
      https://github.com/zopefoundation/Zope/commit/eb4baa09ea4bb63da019ed5d204c190809a41c0f
  Author: Andreas Zeidler <az at zitc.de>
  Date:   2018-04-23 (Mon, 23 Apr 2018)

  Changed paths:
    M CHANGES.rst
    M setup.py
    M src/OFS/tests/testProperties.py
    M src/ZPublisher/Converters.py
    M src/ZPublisher/HTTPRequest.py
    M src/ZPublisher/tests/testHTTPRequest.py
    M src/ZPublisher/tests/test_Converters.py

  Log Message:
  -----------
  Fix 'lines' property to always use 'bytes' (#206)

* Convert lists/tuples of strings to bytes.

`str` does the same in Python 2.

* Also make sure bytes will be correctly converted as well.




More information about the checkins mailing list