[gedit-plugins] Make class textsize.signals.Signals into new style class for python2.
- From: Matěj Cepl <mcepl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Make class textsize.signals.Signals into new style class for python2.
- Date: Tue, 25 Aug 2015 14:24:12 +0000 (UTC)
commit cdda46ca98b3634626c3b65e626dc2ff6c8bcbe4
Author: Matěj Cepl <mcepl cepl eu>
Date: Sat Jul 4 01:03:36 2015 +0200
Make class textsize.signals.Signals into new style class for python2.
Otherwise python2 complains when this plugin is loaded:
/usr/lib64/python2.7/site-packages/gi/types.py:282:
RuntimeWarning: Mixin class textsize.signals.Signals
is an old style class, please update this to derive from "object".
https://bugzilla.gnome.org/show_bug.cgi?id=751935
plugins/textsize/textsize/signals.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/textsize/textsize/signals.py b/plugins/textsize/textsize/signals.py
index 650cd3c..5b46740 100644
--- a/plugins/textsize/textsize/signals.py
+++ b/plugins/textsize/textsize/signals.py
@@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
-class Signals:
+class Signals(object):
def __init__(self):
self._signals = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]