diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-21 21:38:06 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-30 21:33:57 -0500 |
commit | edbfdf08d8e4bfa3ea725dc69089123537403ed6 (patch) | |
tree | 816af558f6d4416e112387872bd24b15329ff4d8 /volk/gen/volk_regexp.py | |
parent | 52c51c983d51ff725238c22571b2d466875a5f22 (diff) |
volk: fix #466 deprecated string use, from Pinkava
Diffstat (limited to 'volk/gen/volk_regexp.py')
-rw-r--r-- | volk/gen/volk_regexp.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/volk/gen/volk_regexp.py b/volk/gen/volk_regexp.py index b83ce5206c..eb4ceb54b2 100644 --- a/volk/gen/volk_regexp.py +++ b/volk/gen/volk_regexp.py @@ -1,5 +1,4 @@ import re -import string remove_after_underscore = re.compile("_.*"); space_remove = re.compile(" "); @@ -10,5 +9,5 @@ replace_volk = re.compile("volk"); def strip_trailing(tostrip, stripstr): lindex = tostrip.rfind(stripstr) - tostrip = tostrip[0:lindex] + string.replace(tostrip[lindex:len(tostrip)], stripstr, ""); + tostrip = tostrip[0:lindex] + tostrip[lindex:len(tostrip)].replace(stripstr, ""); return tostrip |