Skip to content

Commit 5086830

Browse files
committed
Revert "fixed"
This reverts commit 42c0312.
1 parent 42c0312 commit 5086830

File tree

3 files changed

+5
-197
lines changed

3 files changed

+5
-197
lines changed

pylidator/pylidator.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ def validate(
3131
`include_field_name_in_message` If false, the field name will not be part of the formatted error message.
3232
"""
3333

34-
ledger = ErrorLedger(
35-
default_object_data={"validation_type": validation_type}, logging=logging, validators=validators
36-
)
34+
ledger = ErrorLedger(default_object_data={"validation_type": validation_type}, logging=logging, validators=validators)
3735

3836
def _process_validator_results(ret, level, object_data, obj):
39-
"""Process the return of a user-supplied `validator`. Accepts lists, dicts, and strings."""
37+
""" Process the return of a user-supplied `validator`. Accepts lists, dicts, and strings. """
4038

4139
# The first object in the tuple is the one being validated
4240
if isinstance(obj, tuple):
@@ -63,7 +61,7 @@ def _process_validator_results(ret, level, object_data, obj):
6361
else:
6462
verbose_name = field_name_mapper(real_obj, field_name)
6563
if verbose_name is None:
66-
from .titlecase import titlecase
64+
from titlecase import titlecase
6765

6866
verbose_name = titlecase(" ".join(field_name.split("_")))
6967

@@ -87,7 +85,7 @@ def _process_validator_results(ret, level, object_data, obj):
8785
object_data_with_field["field"] = field_name
8886
verbose_name = field_name_mapper(real_obj, field_name)
8987
if verbose_name is None:
90-
from .titlecase import titlecase
88+
from titlecase import titlecase
9189

9290
verbose_name = titlecase(" ".join(field_name.split("_")))
9391

pylidator/titlecase.py

Lines changed: 0 additions & 190 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Versions should comply with PEP440. For a discussion on single-sourcing
1111
# the version across setup.py and the project code, see
1212
# https://packaging.python.org/en/latest/single_source_version.html
13-
version="1.1.6",
13+
version="1.1.5",
1414
description="A practical system for organizing validation rules.",
1515
long_description=long_description,
1616
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)