Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2008-04-26 18:20:03 (GMT)
committer Simon Schampijer <simon@schampijer.de>2008-04-26 18:20:03 (GMT)
commit5eca7ecafa961d6659ad45a6e8fb8600e96cc736 (patch)
tree8e0ca5a154781a1d3669347246444cb583580fa9 /src
parent8c4a1958d768dbc073a31254616fc950338bad1b (diff)
pylint hardware (part 3, use the public xocolors)
dependent on commit in sugar-toolkit
Diffstat (limited to 'src')
-rw-r--r--src/hardware/nmclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/nmclient.py b/src/hardware/nmclient.py
index 626b276..5aa6a89 100644
--- a/src/hardware/nmclient.py
+++ b/src/hardware/nmclient.py
@@ -153,9 +153,9 @@ class Network(gobject.GObject):
data = self._ssid + hex(self._caps) + hex(self._mode)
sh.update(data)
h = hash(sh.digest())
- idx = h % len(xocolor._colors)
+ idx = h % len(xocolor.colors)
# stroke, fill
- return (xocolor._colors[idx][0], xocolor._colors[idx][1])
+ return (xocolor.colors[idx][0], xocolor.colors[idx][1])
def get_ssid(self):
return self._ssid