Avoid using str as a variable name.

This commit is contained in:
Walter Dörwald 2005-11-22 12:58:19 +00:00
parent 5898fa2dcd
commit 91043f3286
1 changed files with 4 additions and 4 deletions

View File

@ -73,10 +73,10 @@ def encode(in_file, out_file, name=None, mode=None):
# Write the data # Write the data
# #
out_file.write('begin %o %s\n' % ((mode&0777),name)) out_file.write('begin %o %s\n' % ((mode&0777),name))
str = in_file.read(45) data = in_file.read(45)
while len(str) > 0: while len(data) > 0:
out_file.write(binascii.b2a_uu(str)) out_file.write(binascii.b2a_uu(data))
str = in_file.read(45) data = in_file.read(45)
out_file.write(' \nend\n') out_file.write(' \nend\n')