Skip to content

Commit

Permalink
Fixed bug in constructor shortcut for setting options
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Willison committed Jan 7, 2009
1 parent 08ef7b8 commit bb3d8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ratelimitcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ratelimit(object):
expire_after = (minutes + 1) * 60

def __init__(self, **options):
for key, value in options:
for key, value in options.items():
setattr(self, key, value)

def __call__(self, fn):
Expand Down

0 comments on commit bb3d8d7

Please sign in to comment.