From 837c07729c089b8c5fdf3828cedff054b0cf1dde Mon Sep 17 00:00:00 2001 From: Alejandro Gómez Date: Fri, 27 Apr 2012 13:50:25 +0200 Subject: test Label validation errors --- pygithub3/resources/issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygithub3/resources') diff --git a/pygithub3/resources/issues.py b/pygithub3/resources/issues.py index c560faa..af7547f 100644 --- a/pygithub3/resources/issues.py +++ b/pygithub3/resources/issues.py @@ -11,7 +11,7 @@ class Label(Resource): @staticmethod def is_valid_color(color): valid_color = re.compile(r'[0-9abcdefABCDEF]{6}') - match = valid_color(color) + match = valid_color.match(color) if match is None: return False return match.start() == 0 and match.end() == len(color) -- cgit v1.2.3-59-g8ed1b