diff options
author | 2012-04-27 13:50:25 +0200 | |
---|---|---|
committer | 2012-05-27 19:54:29 +0200 | |
commit | 837c07729c089b8c5fdf3828cedff054b0cf1dde (patch) | |
tree | 3afcb0ab80782c22d74baeae803a369c8886eea0 /pygithub3/resources/issues.py | |
parent | Labels and Milestones services added (diff) | |
download | python-github3-837c07729c089b8c5fdf3828cedff054b0cf1dde.tar.xz python-github3-837c07729c089b8c5fdf3828cedff054b0cf1dde.zip |
test Label validation errors
Diffstat (limited to 'pygithub3/resources/issues.py')
-rw-r--r-- | pygithub3/resources/issues.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |