From 463be01df9b46fb7cc2679aaa047a081ec5c11ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Eduardo?= Date: Sat, 13 Jan 2018 20:34:35 -0500 Subject: pep8 en lvc/widgets/osx/helpers.py --- lvc/widgets/osx/helpers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lvc/widgets/osx/helpers.py') diff --git a/lvc/widgets/osx/helpers.py b/lvc/widgets/osx/helpers.py index e4aa23a..8f2e4c0 100644 --- a/lvc/widgets/osx/helpers.py +++ b/lvc/widgets/osx/helpers.py @@ -35,6 +35,7 @@ import traceback from Foundation import * from objc import nil + class NotificationForwarder(NSObject): """Forward notifications from a Cocoa object to a python class. """ @@ -70,7 +71,7 @@ class NotificationForwarder(NSObject): self.callback_map[name] = callback self.center.addObserver_selector_name_object_(self, 'observe:', name, - self.nsobject) + self.nsobject) def disconnect(self, name=None): if name is not None: @@ -91,5 +92,5 @@ class NotificationForwarder(NSObject): callback(notification) except: logging.warn("Callback for %s raised exception:%s\n", - name.encode('utf-8'), - traceback.format_exc()) + name.encode('utf-8'), + traceback.format_exc()) -- cgit v1.2.3