From ec0e04694278ef9ea83537d308b07fc27c1b5f85 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 13 Dec 2016 15:53:56 -0700 Subject: DEP: Fix escaped string characters deprecated in Python 3.6. In Python 3.6 a number of escape sequences that were previously accepted -- for instance "\(" that was translated to "\\(" -- are deprecated. To retain the previous behavior either raw strings must be used or the backslash must be properly escaped itself. --- numpy/distutils/fcompiler/ibm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils/fcompiler/ibm.py') diff --git a/numpy/distutils/fcompiler/ibm.py b/numpy/distutils/fcompiler/ibm.py index cc65df972..388ec99b1 100644 --- a/numpy/distutils/fcompiler/ibm.py +++ b/numpy/distutils/fcompiler/ibm.py @@ -36,7 +36,7 @@ class IBMFCompiler(FCompiler): xlf = find_executable('xlf') if os.path.exists(xlf) and os.path.exists(lslpp): s, o = exec_command(lslpp + ' -Lc xlfcmp') - m = re.search('xlfcmp:(?P\d+([.]\d+)+)', o) + m = re.search(r'xlfcmp:(?P\d+([.]\d+)+)', o) if m: version = m.group('version') xlf_dir = '/etc/opt/ibmcmp/xlf' -- cgit v1.2.1