mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add Imgur rate limiting
This commit is contained in:
parent
dec5931fd4
commit
80df2b0fad
4 changed files with 105 additions and 6 deletions
9
lib/ratelimit/version.py
Normal file
9
lib/ratelimit/version.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
class Version(object):
|
||||
'''Version of the package'''
|
||||
|
||||
def __setattr__(self, *args):
|
||||
raise TypeError('cannot modify immutable instance')
|
||||
__delattr__ = __setattr__
|
||||
|
||||
def __init__(self, num):
|
||||
super(Version, self).__setattr__('number', num)
|
Loading…
Add table
Add a link
Reference in a new issue