mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-12 07:12:26 +00:00
Move towards python 3
This commit is contained in:
+2
-4
@@ -13,9 +13,7 @@
|
||||
## python playbacktest.py out.raw
|
||||
|
||||
|
||||
# Footnote: I'd normally use print instead of sys.std(out|err).write,
|
||||
# but we're in the middle of the conversion between python 2 and 3
|
||||
# and this code runs on both versions without conversion
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import time
|
||||
@@ -23,7 +21,7 @@ import getopt
|
||||
import alsaaudio
|
||||
|
||||
def usage():
|
||||
sys.stderr.write('usage: playbacktest.py [-c <card>] <file>\n')
|
||||
print('usage: playbacktest.py [-c <card>] <file>', file=sys.stderr)
|
||||
sys.exit(2)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user