From 8efc5c1a0c078418f6c6a8e319355f9b16153bf2 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 18 Feb 2016 11:33:25 +0100 Subject: [PATCH] rgba: add missing versionadded and expose it into the __all__ --- kivy/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivy/utils.py b/kivy/utils.py index 3e570dcc0..ad2ff84dd 100644 --- a/kivy/utils.py +++ b/kivy/utils.py @@ -18,7 +18,7 @@ __all__ = ('intersection', 'difference', 'strtotuple', 'is_color_transparent', 'hex_colormap', 'colormap', 'boundary', 'deprecated', 'SafeList', 'interpolate', 'QueryDict', - 'platform', 'escape_markup', 'reify') + 'platform', 'escape_markup', 'reify', 'rgba') from os import environ from sys import platform as _sys_platform @@ -91,6 +91,8 @@ def strtotuple(s): def rgba(s, *args): '''Return a kivy color (4 value from 0-1 range) from either a hex string or a list of 0-255 values + + .. versionadded:: 1.9.2 ''' if isinstance(s, string_types): return get_color_from_hex(s)