Show More
@@ -33,10 +33,21 b' from __future__ import absolute_import' | |||||
33 |
|
33 | |||
34 | import socket |
|
34 | import socket | |
35 |
|
35 | |||
|
36 | from mercurial import( | |||
|
37 | registrar, | |||
|
38 | ) | |||
|
39 | ||||
36 | from mercurial.hgweb import ( |
|
40 | from mercurial.hgweb import ( | |
37 | server, |
|
41 | server, | |
38 | ) |
|
42 | ) | |
39 |
|
43 | |||
|
44 | configtable = {} | |||
|
45 | configitem = registrar.configitem(configtable) | |||
|
46 | ||||
|
47 | configitem('badserver', 'closeafteraccept', | |||
|
48 | default=False, | |||
|
49 | ) | |||
|
50 | ||||
40 | # We can't adjust __class__ on a socket instance. So we define a proxy type. |
|
51 | # We can't adjust __class__ on a socket instance. So we define a proxy type. | |
41 | class socketproxy(object): |
|
52 | class socketproxy(object): | |
42 | __slots__ = ( |
|
53 | __slots__ = ( |
General Comments 0
You need to be logged in to leave comments.
Login now