[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/03: modtool: Allow c++ instead of cpp on
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/03: modtool: Allow c++ instead of cpp on the command line |
Date: |
Fri, 27 May 2016 19:14:57 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 050bad874bed86003c061191782220f28d75d065
Author: Martin Braun <address@hidden>
Date: Sat May 21 23:19:43 2016 -0700
modtool: Allow c++ instead of cpp on the command line
---
gr-utils/python/modtool/modtool_add.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gr-utils/python/modtool/modtool_add.py
b/gr-utils/python/modtool/modtool_add.py
index a4812c8..77f82aa 100644
--- a/gr-utils/python/modtool/modtool_add.py
+++ b/gr-utils/python/modtool/modtool_add.py
@@ -83,9 +83,8 @@ class ModToolAdd(ModTool):
if self._info['lang'] is None:
while self._info['lang'] not in ['cpp', 'python']:
self._info['lang'] = raw_input("Language (python/cpp): ")
-
- if self._info['lang'] == 'c++':
- self._info['lang'] = 'cpp'
+ if self._info['lang'] == 'c++':
+ self._info['lang'] = 'cpp'
print "Language: %s" % {'cpp': 'C++', 'python':
'Python'}[self._info['lang']]