File: warnings.rst

package info (click to toggle)
python-openstacksdk 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,352 kB
  • sloc: python: 122,960; sh: 153; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 784 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Warnings
========

openstacksdk uses the `warnings`__ infrastructure to warn users about
deprecated resources and resource fields, as well as deprecated behavior in
openstacksdk itself. These warnings are derived from ``Warning`` or
``DeprecationWarning``. In Python, warnings are emitted by default while
deprecation warnings are silenced by default and must be turned on using the
``-Wa`` Python command line option or the ``PYTHONWARNINGS`` environment
variable. If you are writing an application that uses openstacksdk, you may
wish to enable some of these warnings during test runs to ensure you migrate
away from deprecated behavior.

Available warnings
------------------

.. automodule:: openstack.warnings
   :members:

.. __: https://docs.python.org/3/library/warnings.html