mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
|
@ -44,7 +44,7 @@ def gethdr(fp):
|
|||
def printhdr(file):
|
||||
hdr = gethdr(open(file, 'r'))
|
||||
data_size, encoding, sample_rate, channels, info = hdr
|
||||
while info[-1:] = '\0':
|
||||
while info[-1:] == '\0':
|
||||
info = info[:-1]
|
||||
print 'File name: ', file
|
||||
print 'Data size: ', data_size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue