Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-22 09:38:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-22 09:38:55 +0300
commitbfa9ead12a30aef45592deabaa82d64dd895b5a0 (patch)
tree47ec43e9bbb346a1555648056008b517be7fdc64 /release/scripts/modules/console/intellisense.py
parentb5f77973a762b897892a39230095943f23a7f9c6 (diff)
Cleanup: quiet unknown escape warnings
Auto-complete showed errors.
Diffstat (limited to 'release/scripts/modules/console/intellisense.py')
-rw-r--r--release/scripts/modules/console/intellisense.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/modules/console/intellisense.py b/release/scripts/modules/console/intellisense.py
index 84d4bff281d..6dd858f4bdf 100644
--- a/release/scripts/modules/console/intellisense.py
+++ b/release/scripts/modules/console/intellisense.py
@@ -35,20 +35,20 @@ import re
# regular expressions to find out which completer we need
# line which starts with an import statement
-RE_MODULE = re.compile('^import(\s|$)|from.+')
+RE_MODULE = re.compile(r'''^import(\s|$)|from.+''')
# The following regular expression means an 'unquoted' word
RE_UNQUOTED_WORD = re.compile(
# don't start with a quote
- '''(?:^|[^"'a-zA-Z0-9_])'''
+ r'''(?:^|[^"'a-zA-Z0-9_])'''
# start with a \w = [a-zA-Z0-9_]
- '''((?:\w+'''
+ r'''((?:\w+'''
# allow also dots and closed bracket pairs []
- '''(?:\w|[.]|\[.+?\])*'''
+ r'''(?:\w|[.]|\[.+?\])*'''
# allow empty string
- '''|)'''
+ r'''|)'''
# allow an unfinished index at the end (including quotes)
- '''(?:\[[^\]]*$)?)$''',
+ r'''(?:\[[^\]]*$)?)$''',
# allow unicode as theoretically this is possible
re.UNICODE)