diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-15 18:39:50 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-11-23 16:14:34 (GMT) |
commit | 5f8ec81023f7acefcab1597a60cd0094d85ee3f1 (patch) | |
tree | bb66c68854b513481e30d62238324a6620c411e7 | |
parent | 9c7769cc21e681959d7424a8cb233b602a9698fe (diff) |
PEP8 cleanup: fix deprecated raise syntax
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
-rw-r--r-- | src/sugar/graphics/style.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/graphics/style.py b/src/sugar/graphics/style.py index d5f82ff..7f48d9a 100644 --- a/src/sugar/graphics/style.py +++ b/src/sugar/graphics/style.py @@ -83,7 +83,7 @@ class Color(object): if html_color[0] == '#': html_color = html_color[1:] if len(html_color) != 6: - raise ValueError, "input #%s is not in #RRGGBB format" % html_color + raise ValueError('input #%s is not in #RRGGBB format' % html_color) r, g, b = html_color[:2], html_color[2:4], html_color[4:] r, g, b = [int(n, 16) for n in (r, g, b)] |