[Checkins] SVN: Sandbox/malthe/chameleon.core/ Removed unused imports, thanks to PyFlakes.
Hanno Schlichting
plone at hannosch.info
Fri Nov 28 11:39:06 EST 2008
Log message for revision 93428:
Removed unused imports, thanks to PyFlakes.
Changed:
U Sandbox/malthe/chameleon.core/CHANGES.txt
U Sandbox/malthe/chameleon.core/src/chameleon/core/generation.py
U Sandbox/malthe/chameleon.core/src/chameleon/core/tests/test_edgecases.py
U Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
U Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 16:30:56 UTC (rev 93427)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 16:39:06 UTC (rev 93428)
@@ -4,6 +4,8 @@
HEAD
~~~~
+- Removed unused imports, thanks to PyFlakes. [hannosch]
+
- Removed warning about utf-8 as a recommend default encoding. There is no
apparent speed improvement anymore. [hannosch]
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/generation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/generation.py 2008-11-28 16:30:56 UTC (rev 93427)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/generation.py 2008-11-28 16:39:06 UTC (rev 93428)
@@ -3,7 +3,6 @@
from zope.i18nmessageid import Message
import utils
-import etree
function_template = """\
def bind():
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/tests/test_edgecases.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/tests/test_edgecases.py 2008-11-28 16:30:56 UTC (rev 93427)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/tests/test_edgecases.py 2008-11-28 16:39:06 UTC (rev 93428)
@@ -10,7 +10,6 @@
PlacelessSetup.tearDown(self)
def test_doctype_declared_in_constructor_adds_doctype(self):
- import chameleon.core
from chameleon.core.testing import MockTemplate
from chameleon.core import doctypes
body = u"""\
@@ -26,7 +25,6 @@
self.assertEqual(norm(t.render()), norm(expected))
def test_doctype_declared_in_constructor_overrides_template_doctype(self):
- import chameleon.core
from chameleon.core.testing import MockTemplate
from chameleon.core import doctypes
body = u"""\
@@ -44,7 +42,6 @@
self.assertEqual(norm(t.render()), norm(expected))
def test_doctype_assigned_to_instance_overrides_constructor_doctype(self):
- import chameleon.core
from chameleon.core.testing import MockTemplate
from chameleon.core import doctypes
body = u"""\
@@ -63,7 +60,6 @@
self.assertEqual(norm(t.render()), norm(expected))
def test_no_doctype_overrides_parsed_doctype(self):
- import chameleon.core
from chameleon.core.testing import MockTemplate
from chameleon.core import doctypes
body = u"""\
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-28 16:30:56 UTC (rev 93427)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-28 16:39:06 UTC (rev 93428)
@@ -4,7 +4,6 @@
import generation
import codegen
import clauses
-import doctypes
import itertools
import types
import utils
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py 2008-11-28 16:30:56 UTC (rev 93427)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/utils.py 2008-11-28 16:39:06 UTC (rev 93428)
@@ -1,12 +1,11 @@
from zope import interface
-from zope import component
import sys
import pprint
import config
import interfaces
import htmlentitydefs
-import re, string
+import re
types = sys.modules['types']
More information about the Checkins
mailing list