Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-02-24 22:59:38 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-02-24 22:59:38 (GMT)
commit4541b7697ce70d5308efa43d5b687ab135933b00 (patch)
treeaac14d21af525ba3df4c7febdd113af5c3493c01 /utils.py
parentb20b100fbb6e70c410dfa3119aae2ccf22e2aa98 (diff)
PyLint fixes
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.py b/utils.py
index c4a2ae5..01741df 100644
--- a/utils.py
+++ b/utils.py
@@ -23,7 +23,7 @@ import gconf
def rgb_to_html(color):
- '''Returns a html string from a Gdk color'''
+ """Returns a html string from a Gdk color"""
red = "%x" % int(color.red / 65535.0 * 255)
if len(red) == 1:
red = "0%s" % red
@@ -44,13 +44,13 @@ def rgb_to_html(color):
def get_user_color():
- '''Returns the user colors'''
+ """Returns the user colors"""
color = gconf.client_get_default().get_string("/desktop/sugar/user/color")
return color.split(",")
def get_chart_file(activity_dir):
- '''Returns a path for write the chart in a png image'''
+ """Returns a path for write the chart in a png image"""
chart_file = os.path.join(activity_dir, "chart-1.png")
num = 0
@@ -62,5 +62,5 @@ def get_chart_file(activity_dir):
def get_decimals(number):
- '''Returns the decimals count of a number'''
+ """Returns the decimals count of a number"""
return str(len(number.split('.')[1]))