zephyr/scripts
Ulf Magnusson a449c98db2 scripts: Fix risky uses of non-raw regex strings in Python scripts
Fixes pylint warnings like this one:

    doc/conf.py:325:0: W1401: Anomalous backslash in string: '\s'.
    String constant might be missing an r prefix.
    (anomalous-backslash-in-string)

The reason for this warning is that backslash escapes are interpreted in
non-raw (non-r-prefixed) strings. For example, '\a' and r'\a' are not
the same string (first one has a single ASCII bell character, second one
has two characters).

It just happens that there's no \s (or \., or \/) escape for example,
and '\s' turns into two characters (as needed for a regex). It's risky
to rely on stuff like that regexes though. Best to make them raw strings
unless they're super trivial.

Also note that '\s' and '\\s' turn into the same string.

Another tip: A literal ' can be put into a string with "blah'blah"
instead of 'blah\'blah'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-28 14:41:32 -05:00
..
checkpatch
ci scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
coccinelle coccinelle: Updating ignore_return to support memcpy 2018-12-19 14:37:25 +01:00
cross_compiler
dts scripts/dts: Fix bug in dead /memreserve/ code 2019-03-28 11:11:13 -05:00
footprint scripts: size_report: Fix output of header break line 2019-02-28 09:23:16 -08:00
gitlint scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
kconfig scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
sanity_chk scripts: Remove unused imports in all Python scripts 2019-03-28 11:06:20 -05:00
support scripts: Remove unused imports in all Python scripts 2019-03-28 11:06:20 -05:00
west_commands scripts: Remove unused imports in all Python scripts 2019-03-28 11:06:20 -05:00
.gitignore
check_link_map.py scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
checkpatch.pl userspace: remove APPLICATION_MEMORY feature 2019-02-08 07:04:30 -05:00
checkstack.pl
coccicheck scripts: coccicheck: Add support for SPFLAGS 2019-02-07 08:12:20 -05:00
dir_is_writeable.py
elf_helper.py scripts: elf_helper: Remove undefined var ref. in ArrayType.__repr__() 2019-03-28 11:07:42 -05:00
file2hex.py
filter-known-issues.py scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
gen_app_partitions.py scripts: Fix risky uses of non-raw regex strings in Python scripts 2019-03-28 14:41:32 -05:00
gen_cfb_font_header.py
gen_gcov_files.py scripts: gen_gcov_files: report if data capture is not complete 2019-01-29 15:03:38 -05:00
gen_kobject_list.py userspace: add additional script documentation 2019-03-12 08:37:58 +01:00
gen_offset_header.py
gen_priv_stacks.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_relocate_app.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
gen_syscall_header.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
gen_syscalls.py userspace: properly namespace handler functions 2019-03-18 09:23:11 -07:00
mergehex.py scripts: Remove unused variables in all Python scripts 2019-03-28 11:06:20 -05:00
parse_syscalls.py userspace: add additional script documentation 2019-03-12 08:37:58 +01:00
process_gperf.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
qemu-machine-hack.py
requirements.txt scripts/dts: Fix for PyYAML 5.1 Loader changes 2019-03-13 23:21:42 -05:00
sanitycheck sanitycheck: document that --save-tests appends to existing file 2019-03-28 09:30:00 -04:00
series-push-hook.sh scripts: fix path issue in push-hook script 2019-03-13 11:59:38 -05:00
spelling.txt
subfolder_list.py scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
tags.sh
valgrind.supp valgrind: Add error supression file for POSIX arch 2018-12-21 21:07:18 +01:00
waitpid
west-commands.yml scripts: west_commands: add sign command 2019-02-07 08:44:19 -05:00
yaml_to_cmake.py scripts: Remove unused imports in all Python scripts 2019-03-28 11:06:20 -05:00