remove py2 remnants and use mocks in tests

This commit is contained in:
Peter Schmidbauer 2019-10-31 21:12:55 +01:00
parent ef23d7eabe
commit 34f8f858f1
25 changed files with 155 additions and 246 deletions

View file

@ -13,7 +13,7 @@ BLOCK_RE = r"{% *block +(.+?) *%}((?:.|\n)+?){% *endblock *%}"
INCLUDE_RE = r"{% *include +(.+?) *%}"
class Template(object):
class Template:
def __init__(self, template):
self.template = template
self.clean_template = None