diff --git a/beat/web/algorithms/api.py b/beat/web/algorithms/api.py
index bba70cf42b65e2a6e67fec1e140a1f212fcdaf43..1cae18b5a516255b0aaefc03e72036c2534f76b6 100755
--- a/beat/web/algorithms/api.py
+++ b/beat/web/algorithms/api.py
@@ -177,7 +177,7 @@ def binary(request, author_name, object_name, version=None):
         if request.user.is_anonymous() or (request.user.username != author_name):
             return HttpResponseForbidden()
 
-        if not request.FILES.has_key('binary'):
+        if 'binary' not in request.FILES:
             return HttpResponseBadRequest()
 
         file = request.FILES['binary']