summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/compaq.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-12-13 15:53:56 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-12-14 11:33:22 -0700
commitec0e04694278ef9ea83537d308b07fc27c1b5f85 (patch)
treea28bb53d6827e5449c3f2d5ade3a4ad43bef7ca0 /numpy/distutils/fcompiler/compaq.py
parent2a1e5a6d2ffdabf2a18875ee8dd57773d608e4c5 (diff)
downloadnumpy-ec0e04694278ef9ea83537d308b07fc27c1b5f85.tar.gz
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.
Diffstat (limited to 'numpy/distutils/fcompiler/compaq.py')
-rw-r--r--numpy/distutils/fcompiler/compaq.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index 2dd6c01e6..1510ca9d8 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -58,8 +58,8 @@ class CompaqVisualFCompiler(FCompiler):
compiler_type = 'compaqv'
description = 'DIGITAL or Compaq Visual Fortran Compiler'
- version_pattern = r'(DIGITAL|Compaq) Visual Fortran Optimizing Compiler'\
- ' Version (?P<version>[^\s]*).*'
+ version_pattern = (r'(DIGITAL|Compaq) Visual Fortran Optimizing Compiler'
+ r' Version (?P<version>[^\s]*).*')
compile_switch = '/compile_only'
object_switch = '/object:'