/[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.8 by cameron, Sat Jul 31 09:39:34 2004 UTC revision 1.9 by dagobah, Sun Aug 1 04:55:30 2004 UTC
# Line 62  class VendingMachine: Line 62  class VendingMachine:
62                          s = ''                          s = ''
63                          while s == '':                          while s == '':
64                                  s = self.rfh.readline()                                  s = self.rfh.readline()
65                                  if s == '': return None                                  if s == '':
66                        raise VendingException('Input socket has closed!')
67                                  s = s.strip('\r\n')                                  s = s.strip('\r\n')
68                          code = s[0:3]                          code = s[0:3]
69                          text = s[4:]                          text = s[4:]

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26