1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

All python file(...) converted to open(...)

This commit is contained in:
bsongis 2012-08-27 20:26:21 +00:00
parent 2fac92a843
commit f47692a258
4 changed files with 9 additions and 9 deletions

View file

@ -66,7 +66,7 @@ def upload(binaries, ext, stamp):
ftp_connection.delete(ftp_directory + zip_name)
except:
pass
f = file(zip_name, 'rb')
f = open(zip_name, 'rb')
ftp_connection.storbinary('STOR ' + ftp_directory + zip_name, f)
f.close()
ftp_connection.quit()
@ -190,7 +190,7 @@ def multithread_generate(hex, arg, extension, options, languages, maxsize):
def generate_c9x_list(filename, hexes, board):
f = file(filename, "w")
f = open(filename, "w")
f.write("const char *open9x_%s_binaries[] = {\n" % board)
for hex in hexes:
f.write('"%s",\n' % hex)