]> git.lyx.org Git - features.git/commit
layout2layout.py: Python 3 compatibility
authorEnrico Forestieri <forenr@lyx.org>
Thu, 13 Apr 2017 14:20:39 +0000 (16:20 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 13 Apr 2017 14:25:59 +0000 (16:25 +0200)
commit1a26f9b26cff827da5c6ba7850743e4bb1afb1df
tree61bf5c82dbcd232279d35602e3bc74b5bcb6889a
parent70b0f8d953f14d450e817294204b4069cc16db8b
layout2layout.py: Python 3 compatibility

The layout2layout.py script already reads and writes files in
binary format. However, all regexes and comparisons assume strings,
so that python3 chokes on them. This commit converts all involved
strings into bytes-like objects. In this way both python 2 and 3
behave the same.
lib/scripts/layout2layout.py