Skip to content

Commit

Permalink
fix 'validate' imports for new package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Jul 26, 2016
1 parent f9d9188 commit dab0ec9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/configobj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ def validate(self, validator, preserve_errors=False, copy=False,
if preserve_errors:
# We do this once to remove a top level dependency on the validate module
# Which makes importing configobj faster
from validate import VdtMissingValue
from configobj.validate import VdtMissingValue
self._vdtMissingValue = VdtMissingValue

section = self
Expand Down
2 changes: 1 addition & 1 deletion src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

from configobj import ConfigObj
from validate import Validator
from configobj.validate import Validator

@pytest.fixture
def empty_cfg():
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_configobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import configobj as co
from configobj import ConfigObj, flatten_errors, ReloadError, DuplicateError, MissingInterpolationOption, InterpolationLoopError, ConfigObjError
from validate import Validator, VdtValueTooSmallError
from configobj.validate import Validator, VdtValueTooSmallError


def cfg_lines(config_string_representation):
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from configobj import ConfigObj
import pytest
from validate import Validator, VdtValueTooSmallError
from configobj.validate import Validator, VdtValueTooSmallError


class TestBasic(object):
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_validate_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest

from configobj import ConfigObj, get_extra_values, ParseError, NestingError
from validate import Validator
from configobj.validate import Validator

@pytest.fixture()
def thisdir():
Expand Down

0 comments on commit dab0ec9

Please sign in to comment.