--- a/mercurial/hgweb/common.py Mon Dec 26 16:54:33 2016 -0700
+++ b/mercurial/hgweb/common.py Mon Dec 26 16:55:47 2016 -0700
@@ -91,12 +91,12 @@
class ErrorResponse(Exception):
- def __init__(self, code, message=None, headers=[]):
+ def __init__(self, code, message=None, headers=None):
if message is None:
message = _statusmessage(code)
Exception.__init__(self, message)
self.code = code
- self.headers = headers
+ self.headers = headers or []
class continuereader(object):
def __init__(self, f, write):