mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
Use print() for Python 3 compatibility.
This doesn't get everything working in Python 3 yet but it's a start.
This commit is contained in:
parent
83a44dbc39
commit
b5d0a04088
4 changed files with 9 additions and 9 deletions
|
@ -155,7 +155,7 @@ def mapping_for_size(size):
|
|||
return result
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print "Usage: %s <filename>" % sys.argv[0]
|
||||
print("Usage: %s <filename>" % sys.argv[0])
|
||||
sys.exit(1)
|
||||
|
||||
mappings = (
|
||||
|
|
|
@ -238,6 +238,6 @@ def read(filename):
|
|||
|
||||
if __name__ == "__main__":
|
||||
for filename in sys.argv[1:]:
|
||||
print filename
|
||||
print read(filename)
|
||||
print(filename)
|
||||
print(read(filename))
|
||||
|
||||
|
|
|
@ -205,11 +205,11 @@ if __name__ == "__main__":
|
|||
fixed_note = instrument.fixed_note
|
||||
|
||||
if fixed_note is not None:
|
||||
print "%i (fixed note: %i):" % (i, fixed_note)
|
||||
print("%i (fixed note: %i):" % (i, fixed_note))
|
||||
else:
|
||||
print "%i:" % i
|
||||
print("%i:" % i)
|
||||
|
||||
print "\tVoice 1: %s" % instrument.voice1
|
||||
print("\tVoice 1: %s" % instrument.voice1)
|
||||
if instrument.voice2 is not None:
|
||||
print "\tVoice 2: %s" % instrument.voice2
|
||||
print("\tVoice 2: %s" % instrument.voice2)
|
||||
|
||||
|
|
|
@ -84,6 +84,6 @@ def write(filename, data):
|
|||
|
||||
if __name__ == "__main__":
|
||||
for filename in sys.argv[1:]:
|
||||
print filename
|
||||
print read(filename)
|
||||
print(filename)
|
||||
print(read(filename))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue