/[anoncvs]/projects/dispense2/sql-edition/servers/VendingMachine.py


UCC Code Repository

Diff of /projects/dispense2/sql-edition/servers/VendingMachine.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by mtearle, Tue Apr 5 09:55:01 2005 UTC revision 1.17 by dagobah, Sat May 7 12:01:11 2005 UTC
# Line 154  class VendingMachine: Line 154  class VendingMachine:
154          def next_event(self, timeout = None):          def next_event(self, timeout = None):
155                  # we don't want to buffer in the serial port, so we get all the events                  # we don't want to buffer in the serial port, so we get all the events
156                  # we can ASAP.                  # we can ASAP.
157                    if timeout < 0: timeout = 0
158                  if len(self.events) > 0: timeout = 0                  if len(self.events) > 0: timeout = 0
159                  while True:                  while True:
160                          (r, _, _) = select([self.rfh], [], [], timeout)                          (r, _, _) = select([self.rfh], [], [], timeout)

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26