Commit Graph

4 Commits

Author SHA1 Message Date
Paul Culley
f3b5f75e37 Fix strings containing deprecated illegal escape sequences (#648)
Python 3.6 and above has deprecated illegal string escape sequences. Escape sequences are preceded by a '\' and valid ones are "\n\t\r" etc. Illegal ones are not in the list https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals.

Previous to Python 3.6 these illegal sequences were ignored and the '\' was left in place. Pylint has been noting these for a while now.

This PR corrects these sequences in Gramps. I used

find . -name "*.py" | xargs -t -n 1 python3 -Wd -m py_compile 2>&1 | grep Depre

to locate the failing strings.
2018-09-04 12:03:17 +10:00
Sam Manzi
4a6a39d07e
Remove trailing whitespaces 2016-09-01 14:52:45 +10:00
kulath
6204bbb8b1 Update files in windows directory so it compiles under python3 (print
statements and except and raise).
2016-08-22 15:48:17 +01:00
Paul Franklin
c007cdd82c clarify these old files are not for the current Windows AIO package 2016-03-07 14:53:43 -08:00