changeset 30484 | d1b97fc87f55 |
parent 30475 | ef9f197188ec |
child 30564 | 07bcd1bf6151 |
--- a/mercurial/httppeer.py Thu Nov 17 00:59:41 2016 -0800 +++ b/mercurial/httppeer.py Mon Nov 21 20:12:51 2016 -0800 @@ -39,6 +39,9 @@ # We need to wrap reader.read() so HTTPException on subsequent # reads is also converted. + # Ideally we'd use super() here. However, if ``reader`` isn't a new-style + # class, this can raise: + # TypeError: super() argument 1 must be type, not classobj origread = reader.read class readerproxy(reader.__class__): def read(self, *args, **kwargs):