mercurial/sshpeer.py
changeset 25457 2afa748138e0
parent 25456 408b7979bf03
child 25458 4642f0b803ae
--- a/mercurial/sshpeer.py	Wed May 20 10:58:29 2015 -0500
+++ b/mercurial/sshpeer.py	Fri Jun 05 04:54:23 2015 -0700
@@ -65,7 +65,7 @@
 
         (This will only wait for data if the setup is supported by `util.poll`)
         """
-        if self._main.hasbuffer:
+        if getattr(self._main, 'hasbuffer', False): # getattr for classic pipe
             return (True, True) # main has data, assume side is worth poking at.
         fds = [self._main.fileno(), self._side.fileno()]
         try: