From 549de182e493efc10448162c825a9e6c956e4af2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 19 Nov 2015 19:28:48 -0500 Subject: observer_test.py: Convert to new Python class Inherit from `object` instead of not inheriting from anything to get a new Python class. Actually, now that I'm writing this message, I'm wondering if this may not be necessary since Python 3 defaults to new Python objects regardless of how you write it. But then again this is RoboFont and I'm not sure which Python version it's built against (was thinking of TruFont for a moment since I'm currently trying to build it). --- observer_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/observer_test.py b/observer_test.py index 26a963a..b339b4a 100644 --- a/observer_test.py +++ b/observer_test.py @@ -1,6 +1,6 @@ from mojo.events import addObserver -class EqualizeSidebearings: +class EqualizeSidebearings(object): def __init__(self): addObserver(self, 'center', 'spaceCenterKeyUp') -- cgit v1.2.3