File: example.py

package info (click to toggle)
python-deprecation 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: python: 451; makefile: 15
file content (10 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
import deprecation
__version__ = "1.5"


@deprecation.deprecated(deprecated_in="1.0", removed_in="2.0",
                        current_version=__version__,
                        details="Use the bar function instead")
def foo():
    """Do some stuff"""
    return 1