Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-05-04 23:26:28 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-05-04 23:44:03 (GMT)
commit9f71aa864fd6753817cc7a6461d2ff08ec9a34a0 (patch)
tree2b52c417f576cd818a58dd254898fca24ecce81d /src
parent6c4a9b34a115b03b3eb84f89bc4c54263798db65 (diff)
Remove various unused bits
Diffstat (limited to 'src')
-rw-r--r--src/sugar3/activity/htmlactivity.py1
-rw-r--r--src/sugar3/dispatch/saferef.py2
-rw-r--r--src/sugar3/graphics/colorbutton.py1
-rw-r--r--src/sugar3/graphics/radiotoolbutton.py1
-rw-r--r--src/sugar3/graphics/toggletoolbutton.py1
-rw-r--r--src/sugar3/graphics/toolbutton.py1
6 files changed, 1 insertions, 6 deletions
diff --git a/src/sugar3/activity/htmlactivity.py b/src/sugar3/activity/htmlactivity.py
index ac6acc7..38beed5 100644
--- a/src/sugar3/activity/htmlactivity.py
+++ b/src/sugar3/activity/htmlactivity.py
@@ -18,7 +18,6 @@
import json
import os
-from gi.repository import Gtk
from gi.repository import GConf
from gi.repository import WebKit2
from gwebsockets.server import Server
diff --git a/src/sugar3/dispatch/saferef.py b/src/sugar3/dispatch/saferef.py
index 8bcfd8a..3be5a3f 100644
--- a/src/sugar3/dispatch/saferef.py
+++ b/src/sugar3/dispatch/saferef.py
@@ -121,7 +121,7 @@ class BoundMethodWeakref(object):
except Exception, e:
try:
traceback.print_exc()
- except AttributeError, err:
+ except AttributeError:
print '''Exception during saferef %s cleanup function %s: %s'''%(
self, function, e
)
diff --git a/src/sugar3/graphics/colorbutton.py b/src/sugar3/graphics/colorbutton.py
index 1d2faf8..409e985 100644
--- a/src/sugar3/graphics/colorbutton.py
+++ b/src/sugar3/graphics/colorbutton.py
@@ -545,7 +545,6 @@ class ColorToolButton(Gtk.ToolItem):
title = GObject.property(type=str, getter=get_title, setter=set_title)
def do_draw(self, cr):
- child = self.get_child()
if self._palette and self._palette.is_up():
allocation = self.get_allocation()
# draw a black background, has been done by the engine before
diff --git a/src/sugar3/graphics/radiotoolbutton.py b/src/sugar3/graphics/radiotoolbutton.py
index a51a39a..09b26ad 100644
--- a/src/sugar3/graphics/radiotoolbutton.py
+++ b/src/sugar3/graphics/radiotoolbutton.py
@@ -131,7 +131,6 @@ class RadioToolButton(Gtk.RadioToolButton):
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
def do_draw(self, cr):
- child = self.get_child()
if self.palette and self.palette.is_up():
allocation = self.get_allocation()
# draw a black background, has been done by the engine before
diff --git a/src/sugar3/graphics/toggletoolbutton.py b/src/sugar3/graphics/toggletoolbutton.py
index 0c4e592..6d3c7bd 100644
--- a/src/sugar3/graphics/toggletoolbutton.py
+++ b/src/sugar3/graphics/toggletoolbutton.py
@@ -125,7 +125,6 @@ class ToggleToolButton(Gtk.ToggleToolButton):
getter=get_accelerator)
def do_draw(self, cr):
- child = self.get_child()
if self.palette and self.palette.is_up():
allocation = self.get_allocation()
# draw a black background, has been done by the engine before
diff --git a/src/sugar3/graphics/toolbutton.py b/src/sugar3/graphics/toolbutton.py
index 522d653..4a9feee 100644
--- a/src/sugar3/graphics/toolbutton.py
+++ b/src/sugar3/graphics/toolbutton.py
@@ -163,7 +163,6 @@ class ToolButton(Gtk.ToolButton):
type=object, setter=set_palette_invoker, getter=get_palette_invoker)
def do_draw(self, cr):
- child = self.get_child()
if self.palette and self.palette.is_up():
allocation = self.get_allocation()
# draw a black background, has been done by the engine before