mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
58734edff6
FWIW this code is important for very old versions of lyx, older than 1.1.5 (released 19 years ago - 2000/06/06). Funny fact of the day, byte strings do not behave as regular strings in python3 when taking and index. To get a sub-string we need to pass a range, a integer index will not work as it happens in a regular string: $ ipython3 ... In [30]: line Out[30]: b'#This file was created by <mike> Tue Jan 25 10:36:51 2000' In [31]: line[0] Out[31]: 35 In [32]: line[0:1] Out[32]: b'#' The range notations works for both byte and regular strings in python 3, and it also works in python 2. Thus the change is simple and effective. In any case I should confess that I was quite surprised by this. :-) |
||
---|---|---|
.. | ||
.gitignore | ||
CMakeLists.txt | ||
generate_encoding_info.py | ||
lyx2lyx | ||
lyx2lyx_lang.py | ||
lyx2lyx_tools.py | ||
lyx2lyx_version.py.in | ||
lyx_0_06.py | ||
lyx_0_08.py | ||
lyx_0_10.py | ||
lyx_0_12.py | ||
lyx_1_0.py | ||
lyx_1_1_5.py | ||
lyx_1_1_6_0.py | ||
lyx_1_1_6_3.py | ||
lyx_1_1.py | ||
lyx_1_2.py | ||
lyx_1_3.py | ||
lyx_1_4.py | ||
lyx_1_5.py | ||
lyx_1_6.py | ||
lyx_2_0.py | ||
lyx_2_1.py | ||
lyx_2_2.py | ||
lyx_2_3.py | ||
lyx_2_4.py | ||
LyX.py | ||
Makefile.am | ||
parser_tools.py | ||
profiling.py | ||
test_lyx2lyx_tools.py | ||
test_parser_tools.py | ||
unicode_symbols.py |