Skip to content

Commit

Permalink
Fixed #24069 -- Made ServerHandler a new style class to fix super() c…
Browse files Browse the repository at this point in the history
…all.
  • Loading branch information
pelme authored and timgraham committed Jan 2, 2015
1 parent 40ccef1 commit 4ee06ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/core/servers/basehttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def handle_error(self, request, client_address):
super(WSGIServer, self).handle_error(request, client_address)


class ServerHandler(simple_server.ServerHandler):
# Inheriting from object required on Python 2.
class ServerHandler(simple_server.ServerHandler, object):
def handle_error(self):
# Ignore broken pipe errors, otherwise pass on
if not is_broken_pipe_error():
Expand Down

0 comments on commit 4ee06ec

Please sign in to comment.