[Bf-blender-cvs] [bfa9ead12a3] blender-v2.81-release: Cleanup: quiet unknown escape warnings
Campbell Barton
noreply at git.blender.org
Tue Oct 22 08:41:51 CEST 2019
Commit: bfa9ead12a30aef45592deabaa82d64dd895b5a0
Author: Campbell Barton
Date: Tue Oct 22 17:38:55 2019 +1100
Branches: blender-v2.81-release
https://developer.blender.org/rBbfa9ead12a30aef45592deabaa82d64dd895b5a0
Cleanup: quiet unknown escape warnings
Auto-complete showed errors.
===================================================================
M release/scripts/modules/console/intellisense.py
===================================================================
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)
More information about the Bf-blender-cvs
mailing list