summaryrefslogtreecommitdiff
path: root/volk/gen/volk_regexp.py
diff options
context:
space:
mode:
Diffstat (limited to 'volk/gen/volk_regexp.py')
-rw-r--r--volk/gen/volk_regexp.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/volk/gen/volk_regexp.py b/volk/gen/volk_regexp.py
index b83ce5206..eb4ceb54b 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