(self, period)
| 111 | print("Example 7") |
| 112 | class NewBucket: |
| 113 | def __init__(self, period): |
| 114 | self.period_delta = timedelta(seconds=period) |
| 115 | self.reset_time = datetime.now() |
| 116 | self.max_quota = 0 |
| 117 | self.quota_consumed = 0 |
| 118 | |
| 119 | def __repr__(self): |
| 120 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected