Commit b2434c02 by Chris Jerdonek

Changed relative imports to absolute for Python 2.4 support.

parent 135540b4
......@@ -5,8 +5,8 @@ This module contains the initialization logic called by __init__.py.
"""
from .renderer import Renderer
from .template_spec import TemplateSpec
from pystache.renderer import Renderer
from pystache.template_spec import TemplateSpec
__all__ = ['render', 'Renderer', 'TemplateSpec']
......
......@@ -11,7 +11,7 @@ import os
import sys
from . import defaults
from .locator import Locator
from pystache.locator import Locator
def _to_unicode(s, encoding=None):
......
......@@ -6,11 +6,11 @@ This module provides a Renderer class to render templates.
"""
from . import defaults
from .context import Context
from .loader import Loader
from .renderengine import RenderEngine
from .spec_loader import SpecLoader
from .template_spec import TemplateSpec
from pystache.context import Context
from pystache.loader import Loader
from pystache.renderengine import RenderEngine
from pystache.spec_loader import SpecLoader
from pystache.template_spec import TemplateSpec
class Renderer(object):
......
......@@ -7,7 +7,7 @@ This module supports customized (aka special or specified) template loading.
import os.path
from .loader import Loader
from pystache.loader import Loader
# TODO: add test cases for this class.
......
......@@ -12,8 +12,8 @@ from examples.unicode_output import UnicodeOutput
from examples.unicode_input import UnicodeInput
from examples.nested_context import NestedContext
from pystache import Renderer
from .common import EXAMPLES_DIR
from .common import AssertStringMixin
from tests.common import EXAMPLES_DIR
from tests.common import AssertStringMixin
class TestView(unittest.TestCase, AssertStringMixin):
......
......@@ -9,7 +9,7 @@ import os
import sys
import unittest
from .common import AssertStringMixin
from tests.common import AssertStringMixin
from pystache import defaults
from pystache.loader import Loader
......
......@@ -14,7 +14,7 @@ import unittest
from pystache.loader import Loader as Reader
from pystache.locator import Locator
from .common import DATA_DIR
from tests.common import DATA_DIR
from data.views import SayHello
......
......@@ -15,9 +15,9 @@ from pystache import Renderer
from pystache import TemplateSpec
from pystache.loader import Loader
from .common import get_data_path
from .common import AssertStringMixin
from .data.views import SayHello
from tests.common import get_data_path
from tests.common import AssertStringMixin
from tests.data.views import SayHello
class RendererInitTestCase(unittest.TestCase):
......
......@@ -8,8 +8,8 @@ from examples.lambdas import Lambdas
from examples.template_partial import TemplatePartial
from examples.simple import Simple
from .common import EXAMPLES_DIR
from .common import AssertStringMixin
from tests.common import EXAMPLES_DIR
from tests.common import AssertStringMixin
class TestSimple(unittest.TestCase, AssertStringMixin):
......
......@@ -19,12 +19,12 @@ from pystache import TemplateSpec
from pystache.locator import Locator
from pystache.loader import Loader
from pystache.spec_loader import SpecLoader
from .common import DATA_DIR
from .common import EXAMPLES_DIR
from .common import AssertIsMixin
from .common import AssertStringMixin
from .data.views import SampleView
from .data.views import NonAscii
from tests.common import DATA_DIR
from tests.common import EXAMPLES_DIR
from tests.common import AssertIsMixin
from tests.common import AssertStringMixin
from tests.data.views import SampleView
from tests.data.views import NonAscii
class Thing(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment