Skip to content

Commit

Permalink
Keep relative imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
olemoign committed Nov 28, 2021
1 parent 7400518 commit a45aa26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pyramid_jinja2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from zope.deprecation import deprecated
from zope.interface import Interface

from pyramid_jinja2.settings import (
from .settings import (
parse_env_options_from_settings,
parse_loader_options_from_settings,
parse_multiline,
Expand Down
2 changes: 1 addition & 1 deletion src/pyramid_jinja2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pyramid.asset import abspath_from_asset_spec
from pyramid.settings import asbool

from pyramid_jinja2.i18n import GetTextWrapper
from .i18n import GetTextWrapper

_JINJA2_ENVIRONMENT_DEFAULTS = {
"autoescape": True,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pyramid.path import DottedNameResolver

from tests.base import Base
from .base import Base


class TestExtensions(Base, unittest.TestCase):
Expand All @@ -16,7 +16,7 @@ def test_custom_extension(self):
settings = parse_env_options_from_settings(options, "", maybe_dotted, None)
env = create_environment_from_options(settings, {})
ext = env.extensions["tests.extensions.TestExtension"]
from tests import extensions
from . import extensions

self.assertEqual(ext.__class__, extensions.TestExtension)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pyramid import testing

from tests.base import Base, Mock
from .base import Base, Mock


def dummy_filter(value):
Expand Down

0 comments on commit a45aa26

Please sign in to comment.