Commits

Anonymous committed 35c3068

Fixed misnamed variables in _set_eof()

Comments (0)

Files changed (1)

lib/winpexpect.py

 
     def _set_eof(self, handle):
         """INTERNAL: mark a file handle as end-of-file."""
-        if fd == self.stdout_handle:
+        if handle == self.stdout_handle:
             self.stdout_eof = True
-        elif fd == self.stderr_handle:
+        elif handle == self.stderr_handle:
             self.stderr_eof = True
 
     def read_nonblocking(self, size=1, timeout=-1):