Skip to content

Commit

Permalink
Fix byte concatenation in Python 3.4
Browse files Browse the repository at this point in the history
This line worked in Python 3.5 because of PEP 461:

https://www.python.org/dev/peps/pep-0461/

but not in Python 3.4.
  • Loading branch information
StevenMaude committed Oct 4, 2016
1 parent 506269e commit 6638e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messytables/commas.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, name, fileobj, delimiter=None, quotechar=None,

# For line breaking, use the (detected) encoding of the file:
linesep = [t.encode(self.encoding) for t in LINE_SEPARATOR]
linesep = b'(%s)' % b'|'.join(linesep)
linesep = b'(' + b'|'.join(linesep) + b')'
self.linesep = re.compile(linesep)

self._sample = []
Expand Down

0 comments on commit 6638e58

Please sign in to comment.