Skip to content

Commit

Permalink
Merge pull request enthought#11 from sjagoe/master
Browse files Browse the repository at this point in the history
Fixed TraitsDictObject
  • Loading branch information
Jonathan March authored and Jonathan March committed Dec 19, 2011
2 parents 77f265c + 0c75335 commit 9343de6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions traits/trait_handlers.py
Expand Up @@ -3177,6 +3177,11 @@ def clear ( self ):
TraitDictEvent( removed = removed ) )

def update ( self, dic ):
trait = getattr( self, 'trait', None )
if trait is None:
dict.update( self, dic )
return

if len( dic ) > 0:
new_dic = self._validate_dic( dic )

Expand Down

0 comments on commit 9343de6

Please sign in to comment.