Skip to content

Commit

Permalink
Use absolute imports
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jun 9, 2014
1 parent 17c1cf0 commit 6772e0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion formalchemy/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This module is part of FormAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php

import helpers as h
import formalchemy.helpers as h

from formalchemy import config
from formalchemy.forms import FieldSet
Expand Down
2 changes: 1 addition & 1 deletion formalchemy/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class ImgRenderer(TextFieldRenderer):
def render(self, *args, **kwargs):
return '<img src="%s">' % self.value

import fake_module
from formalchemy.tests import fake_module
fake_module.__dict__.update({
'fs': FieldSet(User, session=session),
})
Expand Down
4 changes: 2 additions & 2 deletions formalchemy/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# the MIT License: http://www.opensource.org/licenses/mit-license.php

# todo 2.0 pass field and value (so exception can refer to field name, for instance)
from exceptions import ValidationError
from i18n import _
from formalchemy.exceptions import ValidationError
from formalchemy.i18n import _

if 'any' not in locals():
# pre-2.5 support
Expand Down

0 comments on commit 6772e0d

Please sign in to comment.