aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/issues.py
diff options
context:
space:
mode:
authorAlejandro Gómez <alejandroogomez@gmail.com>2012-04-27 13:50:25 +0200
committerAlejandro Gómez <alejandroogomez@gmail.com>2012-05-27 19:54:29 +0200
commit837c07729c089b8c5fdf3828cedff054b0cf1dde (patch)
tree3afcb0ab80782c22d74baeae803a369c8886eea0 /pygithub3/resources/issues.py
parentLabels and Milestones services added (diff)
downloadpython-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.py2
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)