mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add missing license headers
Make `fix_headers.py` script compatible with Python 3.
This commit is contained in:
parent
290032b68f
commit
f18121824c
12 changed files with 308 additions and 8 deletions
|
|
@ -33,7 +33,7 @@ header = """\
|
|||
/*************************************************************************/
|
||||
"""
|
||||
|
||||
files = open("files", "rb")
|
||||
files = open("files", "r")
|
||||
|
||||
fname = files.readline()
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ while (fname != ""):
|
|||
# In a second pass, we skip all consecutive comment lines starting with "/*",
|
||||
# then we can append the rest (step 2).
|
||||
|
||||
fileread = open(fname.strip(), "rb")
|
||||
fileread = open(fname.strip(), "r")
|
||||
line = fileread.readline()
|
||||
header_done = False
|
||||
|
||||
|
|
@ -92,11 +92,11 @@ while (fname != ""):
|
|||
fileread.close()
|
||||
|
||||
# Write
|
||||
filewrite = open(fname.strip(), "wb")
|
||||
filewrite = open(fname.strip(), "w")
|
||||
filewrite.write(text)
|
||||
filewrite.close()
|
||||
|
||||
# Next file
|
||||
fname = files.readline()
|
||||
|
||||
files.close()
|
||||
files.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue