diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-01-05 21:16:09 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-01-05 21:17:37 -0500 |
commit | b06ce6ea566247b306f0531c5716e57b9c7b4876 (patch) | |
tree | ca17ce20f997e13b7aaba2b3db59f86e07ddd041 /mako/template.py | |
parent | bd830f679b873a872c102e7a5181c5e8b9d7d7c9 (diff) | |
download | external_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.tar.gz external_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.tar.bz2 external_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.zip |
happy new year
also fix one flake8 error
Change-Id: Ia828267fce34d5b194898e3e301b6d463470f068
Diffstat (limited to 'mako/template.py')
-rw-r--r-- | mako/template.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mako/template.py b/mako/template.py index 937d15b..3fd0871 100644 --- a/mako/template.py +++ b/mako/template.py @@ -1,5 +1,5 @@ # mako/template.py -# Copyright 2006-2019 the Mako authors and contributors <see AUTHORS file> +# Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php @@ -520,17 +520,17 @@ class ModuleTemplate(Template): """A Template which is constructed given an existing Python module. - e.g.:: + e.g.:: - t = Template("this is a template") - f = file("mymodule.py", "w") - f.write(t.code) - f.close() + t = Template("this is a template") + f = file("mymodule.py", "w") + f.write(t.code) + f.close() - import mymodule + import mymodule - t = ModuleTemplate(mymodule) - print t.render() + t = ModuleTemplate(mymodule) + print(t.render()) """ |