summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@kit.edu>2013-11-27 22:32:02 +0100
committerMartin Braun <martin.braun@kit.edu>2013-11-27 22:32:02 +0100
commit77b36be049ed864beaf450413e4b960d909d6f8a (patch)
tree664a04b154a1634d2e1eafaba6cc259dc3c0caa1
parent94976b10bf50c52e07f847e32683855b2b95b276 (diff)
parentef135d2907855691001a618ecfeb8d0a813aab39 (diff)
Merge branch 'modtool-dashes' into modtool-git
-rw-r--r--gr-utils/python/modtool/modtool_newmod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/modtool_newmod.py b/gr-utils/python/modtool/modtool_newmod.py
index e3b0e8e795..6e55c5ea59 100644
--- a/gr-utils/python/modtool/modtool_newmod.py
+++ b/gr-utils/python/modtool/modtool_newmod.py
@@ -52,7 +52,7 @@ class ModToolNewModule(ModTool):
self._info['modname'] = self.args[1]
else:
self._info['modname'] = raw_input('Name of the new module: ')
- if not re.match('[a-zA-Z0-9_]+', self._info['modname']):
+ if not re.match('[a-zA-Z0-9_]+$', self._info['modname']):
print 'Invalid module name.'
exit(2)
self._dir = options.directory