Skip to content

Commit

Permalink
- fix for real-life test
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Jun 18, 2020
1 parent e523356 commit b2e19a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OFS/CopySupport.py
Expand Up @@ -689,6 +689,8 @@ def _cb_decode(s, maxsize=8192):
Return a list of text IDs.
"""
dec = decompressobj()
if six.PY3 and isinstance(s, str):
s = s.encode('latin-1')
data = dec.decompress(decodebytes(s), maxsize)
if dec.unconsumed_tail:
raise ValueError
Expand Down

0 comments on commit b2e19a9

Please sign in to comment.