##// END OF EJS Templates
debugcommands: urlerror only has a read() method in Python 2...
Augie Fackler -
r39100:730e7d92 default
parent child Browse files
Show More
@@ -3207,7 +3207,8 b' def debugwireproto(ui, repo, path=None, '
3207 res = opener.open(req)
3207 res = opener.open(req)
3208 body = res.read()
3208 body = res.read()
3209 except util.urlerr.urlerror as e:
3209 except util.urlerr.urlerror as e:
3210 e.read()
3210 # read() method must be called, but only exists in Python 2
3211 getattr(e, 'read', lambda: None)()
3211 continue
3212 continue
3212
3213
3213 if res.headers.get('Content-Type') == 'application/mercurial-cbor':
3214 if res.headers.get('Content-Type') == 'application/mercurial-cbor':
General Comments 0
You need to be logged in to leave comments. Login now