Skip to content

Commit

Permalink
Merge pull request espeed#86 from kefirbandi/ClassMethods
Browse files Browse the repository at this point in the history
Element.__setattr__ now checks for "@classmethods"
  • Loading branch information
espeed committed May 22, 2013
2 parents 203365e + 86c131d commit 010aaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulbs/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __setattr__(self, key, value):
# dict_.get() is faster than getattr()
_initialized = dict_.get("_initialized", False)

if key in dict_ or _initialized is False:
if key in dict_ or _initialized is False or key in self.__class__.__dict__:
# set the attribute normally
object.__setattr__(self, key, value)
else:
Expand Down

0 comments on commit 010aaf0

Please sign in to comment.