diff options
author | Mats Wichmann <mats@linux.com> | 2020-05-09 16:00:54 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-05-12 19:05:32 (GMT) |
commit | 309433587513c59d51ab167bae1795cd9b157c47 (patch) | |
tree | 1f7c803f8a520102faed4a82f2c9dbbb01346ccd /SCons/cpp.py | |
parent | 190bc3bfbb582d49480bb24d90bf6e09b596488c (diff) | |
download | SCons-309433587513c59d51ab167bae1795cd9b157c47.zip SCons-309433587513c59d51ab167bae1795cd9b157c47.tar.gz SCons-309433587513c59d51ab167bae1795cd9b157c47.tar.bz2 |
Python 3.9 support
Fixes to ActionTests to support bytecode, etc.
Eliminate some warnings when running testsuite (rawstrings)
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/cpp.py')
-rw-r--r-- | SCons/cpp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SCons/cpp.py b/SCons/cpp.py index 89d8dac..c56c965 100644 --- a/SCons/cpp.py +++ b/SCons/cpp.py @@ -105,10 +105,10 @@ CPP_Expression = re.compile(e, re.M) # A list with RE to cleanup CPP Expressions (tuples) # We should remove all comments and carriage returns (\r) before evaluating CPP_Expression_Cleaner_List = [ - "/\*.*\*/", - "/\*.*", - "//.*", - "\r" + r"/\*.*\*/", + r"/\*.*", + r"//.*", + r"\r" ] CPP_Expression_Cleaner_RE = re.compile( r"\s*(" + "|".join(CPP_Expression_Cleaner_List) + ")") |