diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-29 18:18:04 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-31 14:03:02 -0400 |
commit | fb7f0437323ba836c68947d38f3604c3336e3a9b (patch) | |
tree | 756512a2b68f1c7270f028b487228fd0e3f13778 /test/foo | |
parent | db498f217e03d772e0c0c37a526226d48ed790e2 (diff) | |
download | external_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.tar.gz external_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.tar.bz2 external_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.zip |
Use tox / zimports
Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
Diffstat (limited to 'test/foo')
-rw-r--r-- | test/foo/mod_no_encoding.py | 7 | ||||
-rw-r--r-- | test/foo/test_ns.py | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/foo/mod_no_encoding.py b/test/foo/mod_no_encoding.py index 2ba6746..004cc44 100644 --- a/test/foo/mod_no_encoding.py +++ b/test/foo/mod_no_encoding.py @@ -1,8 +1,7 @@ - from mako.lookup import TemplateLookup -from mako.exceptions import MakoException, html_error_template template_lookup = TemplateLookup() -def run(): - tpl = template_lookup.get_template('not_found.html') + +def run(): + tpl = template_lookup.get_template("not_found.html") diff --git a/test/foo/test_ns.py b/test/foo/test_ns.py index 282447a..f67e22e 100644 --- a/test/foo/test_ns.py +++ b/test/foo/test_ns.py @@ -1,10 +1,11 @@ def foo1(context): context.write("this is foo1.") - return '' + return "" + def foo2(context, x): context.write("this is foo2, x is " + x) - return '' + return "" -foo3 = "I'm not a callable"
\ No newline at end of file +foo3 = "I'm not a callable" |