summaryrefslogtreecommitdiff
path: root/numpy/f2py/doc/collectinput.py
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2007-10-29 14:37:37 +0000
committerJarrod Millman <millman@berkeley.edu>2007-10-29 14:37:37 +0000
commit06b316521a47470e0cce864e142c9372d14637dc (patch)
treef7a0867626c44d1f5f83fc8a6e884c9f2d24884c /numpy/f2py/doc/collectinput.py
parent3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (diff)
downloadnumpy-06b316521a47470e0cce864e142c9372d14637dc.tar.gz
using faster string methods rather than deprecated string module
Diffstat (limited to 'numpy/f2py/doc/collectinput.py')
-rwxr-xr-xnumpy/f2py/doc/collectinput.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/f2py/doc/collectinput.py b/numpy/f2py/doc/collectinput.py
index 2e3a09d9d..54a908fcc 100755
--- a/numpy/f2py/doc/collectinput.py
+++ b/numpy/f2py/doc/collectinput.py
@@ -22,7 +22,11 @@ Usage:
__version__ = "0.0"
stdoutflag=0
-import sys,os,string,fileinput,re,commands
+import sys
+import os
+import fileinput
+import re
+import commands
try: fn=sys.argv[2]
except:
@@ -46,7 +50,7 @@ for l in fileinput.input(fi):
l=l[:m.end()-1]
m=input.match(l)
if m:
- l=string.strip(l)
+ l=l.strip()
if l[-1]=='}': l=l[:-1]
i=m.end()-2
sys.stderr.write('>>>>>>')