diff makeitso/python.py @ 151:e70421c50d0a

move to ABC
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 01 Dec 2012 19:01:18 -0800
parents 4922bee3d080
children 386a44a52139
line wrap: on
line diff
--- a/makeitso/python.py	Sat Mar 24 11:16:52 2012 -0700
+++ b/makeitso/python.py	Sat Dec 01 19:01:18 2012 -0800
@@ -24,11 +24,14 @@
 from template import MakeItSoTemplate
 from template import Variable
 
-class PythonModuleTemplate(MakeItSoTemplate):
+class PythonTemplate(MakeItSoTemplate):
+  """abstract base class for python-type templates"""
+
+class PythonModuleTemplate(PythonTemplate):
   """single module python package"""
   templates = ['python_module']
 
-class PythonPackageTemplate(MakeItSoTemplate):
+class PythonPackageTemplate(PythonTemplate):
   """
   python package template
   """
@@ -48,7 +51,7 @@
   console_scripts = {'main.py': '{{project}} = {{project}}.main:main',
                      'template.py': '{{project}}-template = {{project}}.template:main'
                      }
-  
+
   def __init__(self, **kw):
     MakeItSoTemplate.__init__(self, **kw)