Debian Codegraph @

src/lazr/config/__init__.py

raw symbols SCIP
1 # Copyright 2007-2015 Canonical Ltd. All rights reserved.
2 #
3 # This file is part of lazr.config
4 #
5 # lazr.config is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation, version 3 of the License.
8 #
9 # lazr.config is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 # License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with lazr.config. If not, see <http://www.gnu.org/licenses/>.
16
17 """A configuration file system."""
18
19 # While we generally frown on "*" imports, this, combined with the fact we
20 # only test code from this module, means that we can verify what has been
21 # exported.
22 from lazr.config._config import * # noqa: F401, F403
23 from lazr.config._config import __all__ # noqa: F401, F402
24
25 try:
26 import importlib.metadata as importlib_metadata
27 except ImportError: # pragma: no cover
28 import importlib_metadata
29
30 try:
31 __version__ = importlib_metadata.version("lazr.config")
32 except importlib_metadata.PackageNotFoundError: # pragma: no cover
33 __version__ = importlib_metadata.version("lazr-config")