Skip to content
Browse files

Fixed bug in constructor shortcut for setting options

  • Loading branch information...
1 parent 08ef7b8 commit bb3d8d753ed0e9b74461d2fe055d4cb193e5ee0d Simon Willison committed Jan 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 ratelimitcache.py
View
2 ratelimitcache.py
@@ -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):

0 comments on commit bb3d8d7

Please sign in to comment.
Something went wrong with that request. Please try again.