manuskript/manuskript/ui/highlighters
Curtis Gedak 7f592bae41 Fix Python 3.6 DeprecationWarning invalid escape sequence messages
Fix by ensuring that regular expressions are constructed using either
raw string literals [1] or double backslashes [2].

[1] https://stackoverflow.com/questions/44325948/pandas-invalid-escape-sequence-after-update
[2] https://github.com/joblib/joblib/pull/526

Note that python only shows the deprecation warnings on initial run [3].

[3] https://bugs.python.org/issue30091

To work around this issue, remove the cached bytecode with:

    find . -name "__pycache__" -exec rm -rf {} \;

Then to prevent compiling to bytecode add the "-B" option to python:

    python3 -B -m pytest -vs
2018-11-16 12:52:56 -07:00
..
__init__.py Checkpoint: working highlighter. Optimization welcome. 2017-11-22 21:03:47 +01:00
basicHighlighter.py Make word match for spell check exclude underscore from words 2018-02-20 10:51:57 -07:00
markdownEnums.py Adds #233: highlighter for CriticMarkup 2017-11-26 21:23:34 +01:00
markdownHighlighter.py Adds "Sentence mode" to Focus mode. #259 2017-12-15 20:56:40 +01:00
markdownTokenizer.py Fix Python 3.6 DeprecationWarning invalid escape sequence messages 2018-11-16 12:52:56 -07:00
MMDHighlighter.py Fix Python 3.6 DeprecationWarning invalid escape sequence messages 2018-11-16 12:52:56 -07:00