[gedit-plugins/gnome-3-14] Make class textsize.signals.Signals into new style class for python2.



commit 178d6da5e6f520a5b3bdfe5ae519c6986b863a7b
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]