mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
new syntax
This commit is contained in:
parent
d61bbb33f7
commit
f47d0485a0
10 changed files with 60 additions and 60 deletions
|
|
@ -70,8 +70,8 @@ def mainloop(ofile, ctl, inp, out, globaltime):
|
|||
# buffer. Discard all buffered data upto his starttime
|
||||
#
|
||||
startstop,histime = eval(ctl.recv(100))
|
||||
if (ofile = None and startstop = 0) or \
|
||||
(ofile <> None and startstop = 1):
|
||||
if (ofile == None and startstop == 0) or \
|
||||
(ofile <> None and startstop == 1):
|
||||
print 'Sync error: saving=',save,' request=',startstop
|
||||
sys.exit(1)
|
||||
filllevel = inp.getfilled()
|
||||
|
|
@ -89,6 +89,6 @@ def mainloop(ofile, ctl, inp, out, globaltime):
|
|||
print 'Time: ', time.millitimer()-starttime, ', Bytes: ', totbytes, ', Samples: ', totsamps
|
||||
if ofile <> None:
|
||||
ofile.write(data)
|
||||
return (startstop = 2)
|
||||
return (startstop == 2)
|
||||
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue