Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-15 18:39:50 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-10-22 17:26:25 (GMT)
commit0959f793d4be988c962194ba7936451a756d048d (patch)
tree4c111a515fe906b6568e4d08d0cb911e0435fbcb
parentb2f90729f571712e09c484d1b237a67b8c176971 (diff)
PEP8 cleanup: fix deprecated raise syntax
-rw-r--r--src/sugar/graphics/style.py2
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)]