From ded66ec61bc38f91290d4ebf3883778827868580 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 29 Nov 2010 13:01:39 +0100 Subject: [PATCH] Removed unnecessary imports --- jinja2/testsuite/api.py | 5 +---- jinja2/testsuite/core_tags.py | 1 - jinja2/testsuite/ext.py | 2 +- jinja2/testsuite/imports.py | 3 --- jinja2/testsuite/inheritance.py | 4 ---- jinja2/testsuite/lexnparse.py | 3 --- jinja2/testsuite/loader.py | 1 - jinja2/testsuite/regression.py | 3 --- jinja2/testsuite/security.py | 3 --- jinja2/testsuite/utils.py | 3 +-- 10 files changed, 3 insertions(+), 25 deletions(-) diff --git a/jinja2/testsuite/api.py b/jinja2/testsuite/api.py index 7e11b83..c8f9634 100644 --- a/jinja2/testsuite/api.py +++ b/jinja2/testsuite/api.py @@ -8,15 +8,12 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase from jinja2 import Environment, Undefined, DebugUndefined, \ - StrictUndefined, UndefinedError, Template, meta, \ + StrictUndefined, UndefinedError, meta, \ is_undefined, Template, DictLoader from jinja2.utils import Cycler diff --git a/jinja2/testsuite/core_tags.py b/jinja2/testsuite/core_tags.py index d456b4f..2b5f580 100644 --- a/jinja2/testsuite/core_tags.py +++ b/jinja2/testsuite/core_tags.py @@ -8,7 +8,6 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import re import unittest from jinja2.testsuite import JinjaTestCase diff --git a/jinja2/testsuite/ext.py b/jinja2/testsuite/ext.py index 89b8579..6ca6c22 100644 --- a/jinja2/testsuite/ext.py +++ b/jinja2/testsuite/ext.py @@ -11,7 +11,7 @@ import re import unittest -from jinja2.testsuite import JinjaTestCase, filesystem_loader +from jinja2.testsuite import JinjaTestCase from jinja2 import Environment, DictLoader, contextfunction, nodes from jinja2.exceptions import TemplateAssertionError diff --git a/jinja2/testsuite/imports.py b/jinja2/testsuite/imports.py index c785606..1cb12cb 100644 --- a/jinja2/testsuite/imports.py +++ b/jinja2/testsuite/imports.py @@ -8,9 +8,6 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase diff --git a/jinja2/testsuite/inheritance.py b/jinja2/testsuite/inheritance.py index 87b4a59..5db1cd6 100644 --- a/jinja2/testsuite/inheritance.py +++ b/jinja2/testsuite/inheritance.py @@ -8,15 +8,11 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase from jinja2 import Environment, DictLoader -from jinja2.exceptions import TemplateSyntaxError LAYOUTTEMPLATE = '''\ diff --git a/jinja2/testsuite/lexnparse.py b/jinja2/testsuite/lexnparse.py index 008a0a9..562df62 100644 --- a/jinja2/testsuite/lexnparse.py +++ b/jinja2/testsuite/lexnparse.py @@ -8,10 +8,7 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os import sys -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase diff --git a/jinja2/testsuite/loader.py b/jinja2/testsuite/loader.py index 0ff0d04..fb1e53d 100644 --- a/jinja2/testsuite/loader.py +++ b/jinja2/testsuite/loader.py @@ -10,7 +10,6 @@ """ import os import sys -import time import tempfile import shutil import unittest diff --git a/jinja2/testsuite/regression.py b/jinja2/testsuite/regression.py index a39c3cb..4db9076 100644 --- a/jinja2/testsuite/regression.py +++ b/jinja2/testsuite/regression.py @@ -8,9 +8,6 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase diff --git a/jinja2/testsuite/security.py b/jinja2/testsuite/security.py index a95705f..bc10095 100644 --- a/jinja2/testsuite/security.py +++ b/jinja2/testsuite/security.py @@ -8,9 +8,6 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os -import time -import tempfile import unittest from jinja2.testsuite import JinjaTestCase diff --git a/jinja2/testsuite/utils.py b/jinja2/testsuite/utils.py index a402bbc..9211c46 100644 --- a/jinja2/testsuite/utils.py +++ b/jinja2/testsuite/utils.py @@ -8,7 +8,6 @@ :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ -import os import gc import unittest @@ -17,7 +16,7 @@ import pickle from jinja2.testsuite import JinjaTestCase from jinja2 import Environment, Undefined, DebugUndefined, \ - StrictUndefined, UndefinedError, Template, meta + StrictUndefined from jinja2.utils import LRUCache, escape, object_type_repr -- 2.26.2