Skip to content

Commit 131c913

Browse files
committed
Remove debug print statements from __init__.py
1 parent eed421b commit 131c913

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

xbox/webapi/common/ratelimits/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ def __init__(self, *parsed_limits: ParsedRateLimit, type: LimitType):
167167
srl = SingleRateLimit(limit.period, type, limit_num)
168168
self.__limits.append(srl)
169169

170-
# DEBUG: print them
171-
for i in self.__limits:
172-
print(
173-
"Added limit of type %s, limit %s, and limit %i"
174-
% (i.get_limit_type(), i.get_time_period(), i._SingleRateLimit__limit)
175-
)
176-
177170
def get_counter(self) -> int:
178171
"""
179172
This function returns the request counter with the **highest** value.
@@ -221,20 +214,10 @@ def get_reset_after(self) -> Union[datetime, None]:
221214
# If dates_valid has any elements, return the one with the *later* timestamp.
222215
# This means that if two or more limits have been exceeded, we wait for both to have reset (by returning the later timestamp)
223216
if len(dates_valid) != 0:
224-
dates_valid[0].isoformat
225-
print(
226-
"Valid dates BEFORE sorting: %s"
227-
% list(map(lambda i: i.isoformat(), dates_valid))
228-
)
229217
# By default dates are sorted with the earliest date first.
230218
# We will set reverse=True so that the first element is the later date.
231219
dates_valid.sort(reverse=True)
232220

233-
print(
234-
"Valid dates AFTER sorting: %s"
235-
% list(map(lambda i: i.isoformat(), dates_valid))
236-
)
237-
238221
# Return the datetime object.
239222
return dates_valid[0]
240223

0 commit comments

Comments
 (0)