summaryrefslogtreecommitdiff
path: root/gi/overrides/Gtk.py
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:46:23 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:46:27 +0900
commit392945d666d2cfb31a844826a72b1eb65a52546f (patch)
treea21354051734cbace4e92d6b10c8fa8cd2721dda /gi/overrides/Gtk.py
parent4723e0bb24cc41607e5af3bb7036855fa767df0b (diff)
downloadpygobject2-392945d666d2cfb31a844826a72b1eb65a52546f.tar.gz
pygobject2-392945d666d2cfb31a844826a72b1eb65a52546f.tar.bz2
pygobject2-392945d666d2cfb31a844826a72b1eb65a52546f.zip
Imported Upstream version 3.25.1
Change-Id: I31412b37aa390505e71295f3a2c2e3cf2ba88b41 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/overrides/Gtk.py')
-rw-r--r--gi/overrides/Gtk.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 2c0e870..08d2612 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -30,10 +30,8 @@ from gi import PyGIDeprecationWarning
if sys.version_info >= (3, 0):
_basestring = str
- _callable = lambda c: hasattr(c, '__call__')
else:
_basestring = basestring
- _callable = callable
Gtk = get_introspection_module('Gtk')
@@ -91,7 +89,7 @@ def _extract_handler_and_args(obj_or_map, handler_name):
args = handler[1:]
handler = handler[0]
- elif not _callable(handler):
+ elif not callable(handler):
raise TypeError('Handler %s is not a method, function or tuple' % handler)
return handler, args
@@ -745,9 +743,6 @@ class TextBuffer(Gtk.TextBuffer):
self.apply_tag(tag, start, iter)
def insert_with_tags_by_name(self, iter, text, *tags):
- if not tags:
- return
-
tag_objs = []
for tag in tags: