Jan-31-2018, 04:00 PM
Just an update, I made some changes to the original code posted above (thought it was better than re-posting the entire code again).
Line 98: added the 'single close quote' (\u00b4) back into the punc string, so it now reads:
Line 98: added the 'single close quote' (\u00b4) back into the punc string, so it now reads:
punc = '.,?`!/()&:;=+-_$@\u00b4' # ยด = '\u00b4'Line 164: added encoding to the open statement, so it now reads:
with open('code_file.txt', 'r', encoding='utf-8') as file:I will try and run it on Linux this weekend to make sure in works on that OS as well.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition