Skip to content

Commit b7a4259

Browse files
Fix a string that should have been raw in nipy/utils/perlpie.py
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
1 parent 401f3d1 commit b7a4259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipy/utils/perlpie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def perl_dash_pie(oldstr, newstr, dry_run=None):
7878
7979
# To replace all occurences of 'import numpy as N' with 'import numpy as np'
8080
from nipy.utils import perlpie
81-
perlpie.perl_dash_pie('import\s+numpy\s+as\s+N', 'import numpy as np')
81+
perlpie.perl_dash_pie(r'import\s+numpy\s+as\s+N', 'import numpy as np')
8282
grind | xargs perl -pi -e 's/import\s+numpy\s+as\s+N/import numpy as np/g'
8383
8484
"""

0 commit comments

Comments
 (0)