From dcf3fca88373fe067e51688b4f0979c821a2514f Mon Sep 17 00:00:00 2001 From: John Tyree Date: Wed, 8 Oct 2014 16:07:27 -0500 Subject: [PATCH] Fix up some style to match surrounding code --- traits/has_traits.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/traits/has_traits.py b/traits/has_traits.py index 57de2ae0c..43b3e4a8c 100644 --- a/traits/has_traits.py +++ b/traits/has_traits.py @@ -3275,7 +3275,7 @@ def _post_init_trait_listeners ( self ): self.on_trait_change( getattr( self, name ), config['pattern'], deferred = True, - dispatch=config['dispatch']) + dispatch=config['dispatch'] ) def _init_trait_listeners ( self ): """ Initializes the object's statically parsed, but dynamically @@ -3290,9 +3290,10 @@ def _init_trait_method_listener ( self, name, kind, config ): decorator. """ if not config['post_init']: - self.on_trait_change( getattr( self, name ), config['pattern'], + self.on_trait_change( getattr( self, name ), + config['pattern'], deferred = True, - dispatch=config['dispatch']) + dispatch=config['dispatch'] ) def _init_trait_event_listener ( self, name, kind, pattern ): """ Sets up the listener for an event with on_trait_change metadata.