diff makeitso/template.py @ 256:f10f5beb8ad1

pytest now actually runs the tests
author Jeff Hammel <k0scist@gmail.com>
date Sat, 27 May 2017 09:37:15 -0700
parents cfd4f1e91090
children
line wrap: on
line diff
--- a/makeitso/template.py	Fri May 26 14:18:47 2017 -0700
+++ b/makeitso/template.py	Sat May 27 09:37:15 2017 -0700
@@ -33,10 +33,7 @@
         return Variable(self.name, self.description, self.default, self.cast)
 
     def set(self, value):
-        if self.cast:
-            self.value = self.cast(value)
-        else:
-            self.value = value
+        self.value = self.cast(value) if self.cast else value
         self._set = True
         return self.value