Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/common.py @ 48946:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | 6000f5b25c9b |
children | 4077d6222cf1 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
113 headers = [] | 113 headers = [] |
114 self.headers = headers | 114 self.headers = headers |
115 self.message = message | 115 self.message = message |
116 | 116 |
117 | 117 |
118 class continuereader(object): | 118 class continuereader: |
119 """File object wrapper to handle HTTP 100-continue. | 119 """File object wrapper to handle HTTP 100-continue. |
120 | 120 |
121 This is used by servers so they automatically handle Expect: 100-continue | 121 This is used by servers so they automatically handle Expect: 100-continue |
122 request headers. On first read of the request body, the 100 Continue | 122 request headers. On first read of the request body, the 100 Continue |
123 response is sent. This should trigger the client into actually sending | 123 response is sent. This should trigger the client into actually sending |