Mercurial > hg
comparison tests/badserverext.py @ 33191:8065b4ab0ed7
configitems: register the 'badserver.closeafteraccept' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:27:36 +0200 |
parents | 08e46fcb8637 |
children | c538fca0d511 |
comparison
equal
deleted
inserted
replaced
33190:0ef40bb20264 | 33191:8065b4ab0ed7 |
---|---|
31 | 31 |
32 from __future__ import absolute_import | 32 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, |
42 ) | |
43 | |
44 configtable = {} | |
45 configitem = registrar.configitem(configtable) | |
46 | |
47 configitem('badserver', 'closeafteraccept', | |
48 default=False, | |
38 ) | 49 ) |
39 | 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__ = ( |