From 914a9103593d7d46af4e69642db09678811e7aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro?= Date: Thu, 7 Mar 2019 12:09:44 +1300 Subject: [PATCH] Removed prints --- rest_framework/throttling.py | 1 - rest_framework/views.py | 1 - 2 files changed, 2 deletions(-) diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index e449ac2f3..425f2fcde 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -124,7 +124,6 @@ class SimpleRateThrottle(BaseThrottle): self.history = self.cache.get(self.key, []) self.now = self.timer() - print(self.history) # Drop any requests from the history which have now passed the # throttle duration diff --git a/rest_framework/views.py b/rest_framework/views.py index 6b3da7aac..f99c6276c 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -356,7 +356,6 @@ class APIView(View): request_allowed = all( [throttle.allow_request(request, self) for throttle in throttles] ) - print(request_allowed, [throttle.allow_request(request, self) for throttle in throttles]) if request_allowed: [throttle.throttle_success(request, self) for throttle in throttles] else: