From 06b316521a47470e0cce864e142c9372d14637dc Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Mon, 29 Oct 2007 14:37:37 +0000 Subject: using faster string methods rather than deprecated string module --- numpy/f2py/doc/collectinput.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'numpy/f2py/doc') 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('>>>>>>') -- cgit v1.2.1