utils: Miscellaneous UFO helper functions

This module contains miscellaneous helpers.

It is not considered part of the public ufoLib API. It does, however, define the deprecated decorator that is used elsewhere in the module.

fontTools.ufoLib.utils.deprecated(msg='')[source]

Decorator factory to mark functions as deprecated with given message.

>>> @deprecated("Enough!")
... def some_function():
...    "I just print 'hello world'."
...    print("hello world")
>>> some_function()
hello world
>>> some_function.__doc__ == "I just print 'hello world'."
True