Adding upstream version 3.3.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
8a475bec34
commit
91f556e1ee
3 changed files with 5 additions and 5 deletions
|
@ -18,12 +18,12 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: autopep8
|
- id: autopep8
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder_python_imports
|
||||||
rev: v2.5.0
|
rev: v2.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
args: [--py3-plus]
|
args: [--py3-plus]
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.16.0
|
rev: v2.24.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py36-plus]
|
args: [--py36-plus]
|
||||||
|
|
4
cfgv.py
4
cfgv.py
|
@ -31,7 +31,7 @@ def validate_context(msg):
|
||||||
yield
|
yield
|
||||||
except ValidationError as e:
|
except ValidationError as e:
|
||||||
_, _, tb = sys.exc_info()
|
_, _, tb = sys.exc_info()
|
||||||
raise ValidationError(e, ctx=msg).with_traceback(tb)
|
raise ValidationError(e, ctx=msg).with_traceback(tb) from None
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
@ -40,7 +40,7 @@ def reraise_as(tp):
|
||||||
yield
|
yield
|
||||||
except ValidationError as e:
|
except ValidationError as e:
|
||||||
_, _, tb = sys.exc_info()
|
_, _, tb = sys.exc_info()
|
||||||
raise tp(e).with_traceback(tb)
|
raise tp(e).with_traceback(tb) from None
|
||||||
|
|
||||||
|
|
||||||
def _dct_noop(self, dct):
|
def _dct_noop(self, dct):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = cfgv
|
name = cfgv
|
||||||
version = 3.3.0
|
version = 3.3.1
|
||||||
description = Validate configuration and produce human readable error messages.
|
description = Validate configuration and produce human readable error messages.
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
|
Loading…
Add table
Reference in a new issue