Show
Ignore:
Timestamp:
07/22/08 15:08:31 (5 years ago)
Author:
cleverdevil
Message:

Resolved duplication in Entity.set and Entity.__init__ by having the constructor just pass its keyword arguments on through to .set.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/entity.py

    r367 r378  
    873873 
    874874    def __init__(self, **kwargs): 
    875         for key, value in kwargs.iteritems(): setattr(self, key, value) 
     875        self.set(**kwargs) 
    876876         
    877877    def set(self, **kwargs):