Fix python 3.6 escape char warnings in strings

In python 3.6, escape sequences that are not
recognized in string literals issue DeprecationWarnings.

Convert these to raw strings.

(This is the second patch for this -- it fixes one that shows
up during doc builds.)

Change-Id: I5c3ffbf51772c409c861a77b06e6089094c853f0
This commit is contained in:
Eric Harney 2017-08-30 11:55:01 -04:00
parent 55e2934722
commit ddb419e9ee
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class EvalConstant(object):
def eval(self):
result = self.value
if (isinstance(result, six.string_types) and
re.match("^[a-zA-Z_]+\.[a-zA-Z_]+$", result)):
re.match(r"^[a-zA-Z_]+\.[a-zA-Z_]+$", result)):
(which_dict, entry) = result.split('.')
try:
result = _vars[which_dict][entry]