forked from DiffSK/configobj
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.py
More file actions
38 lines (30 loc) · 1.15 KB
/
validate.py
File metadata and controls
38 lines (30 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# validate.py
# -*- coding: utf-8 -*-
# pylint: disable=wildcard-import, unused-wildcard-import
#
# A Validator object (deprecation shim)
#
# Copyright (C) 2005-2014:
# (name) : (email)
# Michael Foord: fuzzyman AT voidspace DOT org DOT uk
# Mark Andrews: mark AT la-la DOT com
# Nicola Larosa: nico AT tekNico DOT net
# Rob Dennis: rdennis AT gmail DOT com
# Eli Courtwright: eli AT courtwright DOT org
# This software is licensed under the terms of the BSD license.
# http://opensource.org/licenses/BSD-3-Clause
# ConfigObj 5 - main repository for documentation and issue tracking:
# https://github.com/DiffSK/configobj
"""
The Validator object is used to check that supplied values
conform to a specification.
This is the DEPRECATED top-level module shim, that imports
the validator from the new location ``configobj.validate``.
"""
from __future__ import absolute_import, unicode_literals
import warnings
from configobj.validate import *
# version of the shim, just to satisfy the old API surface
__version__ = '1.1.0'
warnings.warn("top-level 'validate' moved to 'configobj.validate',"
" please adapt your imports", ImportWarning)