--- a/hgext/remotefilelog/connectionpool.py Sun Oct 06 09:45:02 2019 -0400
+++ b/hgext/remotefilelog/connectionpool.py Sun Oct 06 09:48:39 2019 -0400
@@ -46,13 +46,13 @@
# close pipee first so peer.cleanup reading it won't deadlock,
# if there are other processes with pipeo open (i.e. us).
peer = orig.im_self
- if util.safehasattr(peer, 'pipee'):
+ if util.safehasattr(peer, b'pipee'):
peer.pipee.close()
return orig()
peer = hg.peer(self._repo.ui, {}, path)
- if util.safehasattr(peer, 'cleanup'):
- extensions.wrapfunction(peer, 'cleanup', _cleanup)
+ if util.safehasattr(peer, b'cleanup'):
+ extensions.wrapfunction(peer, b'cleanup', _cleanup)
conn = connection(pathpool, peer)
@@ -83,5 +83,5 @@
self.close()
def close(self):
- if util.safehasattr(self.peer, 'cleanup'):
+ if util.safehasattr(self.peer, b'cleanup'):
self.peer.cleanup()