Skip to content

Commit

Permalink
another python 3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedegaard committed Jun 23, 2015
1 parent 98d03fe commit 838b06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webchat/forms.py
Expand Up @@ -17,4 +17,4 @@ class RequestNewForm(forms.Form):
'''
Used for validating the get_new ajax request.
'''
id = forms.IntegerField(min_value=-1, required=True)
id = forms.IntegerField(min_value=-1, required=True)
2 changes: 1 addition & 1 deletion webchat/views.py
Expand Up @@ -89,7 +89,7 @@ def get_new(request):
return _form_errors_to_httpresponse(form)

id = form.cleaned_data['id']
for _ in xrange(SLEEP_SECONDS):
for _ in range(SLEEP_SECONDS):
# Query the backend for messages since "id".
messages = Message.objects.new_messages(id)
message_count = messages.count()
Expand Down

0 comments on commit 838b06b

Please sign in to comment.