summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/CHANGES.txt2
-rw-r--r--src/engine/SCons/Scanner/Python.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 36537cf..99184ed 100755
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -43,7 +43,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Convert remaining uses of insecure/deprecated mktemp method.
- Clean up some duplications in manpage. Clarify portion of manpage on Dir and File nodes.
- Reduce needless list conversions.
-
+ - Fixed regex in Python scanner.
RELEASE 3.1.2 - Mon, 17 Dec 2019 02:06:27 +0000
diff --git a/src/engine/SCons/Scanner/Python.py b/src/engine/SCons/Scanner/Python.py
index 0ab3111..deb2241 100644
--- a/src/engine/SCons/Scanner/Python.py
+++ b/src/engine/SCons/Scanner/Python.py
@@ -42,8 +42,8 @@ import re
import SCons.Scanner
# Capture python "from a import b" and "import a" statements.
-from_cre = re.compile('^\s*from\s+([^\s]+)\s+import\s+(.*)', re.M)
-import_cre = re.compile('^\s*import\s+([^\s]+)', re.M)
+from_cre = re.compile(r'^\s*from\s+([^\s]+)\s+import\s+(.*)', re.M)
+import_cre = re.compile(r'^\s*import\s+([^\s]+)', re.M)
def path_function(env, dir=None, target=None, source=None, argument=None):