[rhinstaller/blivet/pulls/160 master] Deprecate some little-used device lookup methods

bcl installerbot-noreply at redhat.com
Fri Jun 26 17:41:51 UTC 2015


> @@ -637,3 +643,105 @@ def eintr_retry_call(func, *args):
>              if e.errno == errno.EINTR:
>                  continue
>              raise
> +
> +#
> +# Deprecation decorator.
> +#
> +_DEPRECATION_MESSAGE = "will be removed in a future version."
> +def _default_deprecation_msg(func):
> +    return "%s %s" % (func.__name__, _DEPRECATION_MESSAGE)
> +
> +def indent(text, spaces=4):

You can use textwrap.indent for this (on py3)

-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/160#discussion_r33377888


More information about the anaconda-patches mailing list