Skip to content
Snippets Groups Projects
  1. Oct 07, 2003
    • Per Cederqvist's avatar
      (RE): New constant. · b891c3dc
      Per Cederqvist authored
      (EOF): New constant.
      (TIMEOUT): New constant.
      (CONT): New constant.
      (BadArgs): New exception.
      (_expect_before): New variable.
      (_expect_after): New variable.
      (expectable.fill_buffer): Treat EIO as end-of-file.  You apparently
      	get this from a pty when the child exits, at least on Linux.
      (spawn.send): Log what is sent via debug.
      (impl.loop): Implement expect_before and expect_after.
      (_expect_before): Removed.
      (_expect_after): Removed.
      (impl.__expect_before): New method.
      (impl.__expect_after): New method.
      (impl.__run_expectations): New method.
      (expect_after): New function.
      (expect_before): New function.
      (__validate_expectations): New function.
      b891c3dc
    • Per Cederqvist's avatar
      New demonstration. Get a directory listing from two ftp servers, · 8aa5638c
      Per Cederqvist authored
      simultaneously.
      8aa5638c
  2. Oct 06, 2003
  3. Oct 05, 2003
    • Per Cederqvist's avatar
      Who can refuse the Inspiration? The impl, expectable and popen · abcc500d
      Per Cederqvist authored
      classes seems to work now.
      abcc500d
    • Per Cederqvist's avatar
      (expectable.__init__): New argument: fileno. · 291582ea
      Per Cederqvist authored
      (expectable.fill_buffer): Fix the eof handling.
      (expectable.eof): Ditto.
      (popen): New class.
      (popen.__init__): New method.
      (popen.close): New method.
      (impl): Lots of calls to debug added to all methods.
      (impl.loop): Fix syntax errors in expect_before and expect_after
      calls.  Reset __acted.
      (impl.__fill_buffer): New method.
      (impl.re): Extract buffer-filling code to __fill_buffer.
      (impl.eof): New method.
      (_expect_before): New stub function.
      (_expect_after): New stub function.
      (debug): New stub function.
      (Top level): Add a very simple test code.
      291582ea
    • Per Cederqvist's avatar
    • Per Cederqvist's avatar
      (timeout): New variable. · a0251951
      Per Cederqvist authored
      (timeout_raises_exception): New variable.
      (Timeout): New exception.
      (expectable): New class.
      (expectable.__init__): New method.
      (expectable.fileno): New method.
      (expectable.fill_buffer): New method.
      (expectable.eof): New method.
      (expectable.buffer): New method.
      (expectable.remove_first): New method.
      (impl): New class.
      (impl.__init__): New method.
      (impl.loop): New method.
      (impl.re): New method.
      (impl.timeout): New method.
      (impl.cont): New method.
      a0251951
  4. Oct 04, 2003
Loading