Skip to content

Commit

Permalink
Fix up some style to match surrounding code
Browse files Browse the repository at this point in the history
  • Loading branch information
johntyree committed Oct 8, 2014
1 parent b8749cb commit dcf3fca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions traits/has_traits.py
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit dcf3fca

Please sign in to comment.