2to3: fix print statements.
This commit is contained in:
parent
1615e4ce80
commit
ab339f8352
3 changed files with 4 additions and 12 deletions
|
@ -116,18 +116,10 @@ import sys
|
|||
try:
|
||||
import _portaudio as pa
|
||||
except ImportError:
|
||||
print "Please build and install the PortAudio Python " +\
|
||||
"bindings first."
|
||||
print("Please build and install the PortAudio Python " +\
|
||||
"bindings first.")
|
||||
sys.exit(-1)
|
||||
|
||||
|
||||
# Try to use Python 2.4's built in `set'
|
||||
try:
|
||||
a = set()
|
||||
del a
|
||||
except NameError:
|
||||
from sets import Set as set
|
||||
|
||||
############################################################
|
||||
# GLOBALS
|
||||
############################################################
|
||||
|
|
|
@ -6,7 +6,7 @@ import time
|
|||
import sys
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print "Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]
|
||||
print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0])
|
||||
sys.exit(-1)
|
||||
|
||||
wf = wave.open(sys.argv[1], 'rb')
|
||||
|
|
|
@ -103,7 +103,7 @@ for i in range(max_devs):
|
|||
print("\nDefault Devices:\n================")
|
||||
try:
|
||||
def_index = p.get_default_input_device_info()['index']
|
||||
print("Default Input Device :", def_index)
|
||||
print("Default Input Device : %s" % def_index)
|
||||
devinfo = p.get_device_info_by_index(def_index)
|
||||
for k in list(devinfo.items()):
|
||||
name, value = k
|
||||
|
|
Loading…
Add table
Reference in a new issue