From 6f5330a700a94d99ea43b33a516285073a3e384d Mon Sep 17 00:00:00 2001
From: Jiří Pinkava <j-pi@seznam.cz>
Date: Tue, 28 Jun 2016 17:42:40 +0200
Subject: modtool: fix template - copyrightholder filed

---
 gr-utils/python/modtool/templates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-utils/python')

diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py
index 07534e5673..a9c117ac91 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -42,7 +42,7 @@ You should have received a copy of the GNU General Public License
 along with this software; see the file COPYING.  If not, write to
 the Free Software Foundation, Inc., 51 Franklin Street,
 Boston, MA 02110-1301, USA.
-'''.format(datetime.now().year)
+''' % datetime.now().year
 
 Templates['grlicense'] = '''
 Copyright {0} Free Software Foundation, Inc.
-- 
cgit v1.2.3


From ad3a7b184553afa88d6bfe52dfadcf8c577319e5 Mon Sep 17 00:00:00 2001
From: Jiří Pinkava <j-pi@seznam.cz>
Date: Tue, 28 Jun 2016 18:28:37 +0200
Subject: modtool: fix license formating

---
 gr-utils/python/modtool/modtool_add.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-utils/python')

diff --git a/gr-utils/python/modtool/modtool_add.py b/gr-utils/python/modtool/modtool_add.py
index d560c0878c..416c0943b7 100644
--- a/gr-utils/python/modtool/modtool_add.py
+++ b/gr-utils/python/modtool/modtool_add.py
@@ -143,7 +143,7 @@ class ModToolAdd(ModTool):
         elif self._info['is_component']:
             return Templates['grlicense']
         else:
-            return get_template('defaultlicense', **self._info)
+            return Templates['defaultlicense'].format(**self._info)
 
     def _write_tpl(self, tpl, path, fname):
         """ Shorthand for writing a substituted template to a file"""
-- 
cgit v1.2.3