diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-09-12 09:15:39 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-09-12 09:15:39 +0200 |
commit | 474e92d44f601349df7b321d93188d7c22092cf4 (patch) | |
tree | b4ccc90d3c8ad93a1a7311db7e9847dff0febd62 | |
parent | 818aad6eeadbf99b52d5acd93667f05ab449430e (diff) |
python3 fixes
-rwxr-xr-x | src/depmod.py | 11 | ||||
-rwxr-xr-x | src/utils/qpaeq | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/depmod.py b/src/depmod.py index 39b50ceb0..7850d8a9b 100755 --- a/src/depmod.py +++ b/src/depmod.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # This file is part of PulseAudio. # @@ -60,11 +60,10 @@ for fn in imported_symbols: else: unresolved_symbols[sym] = [fn] -for sym, files in unresolved_symbols.iteritems(): - print "WARNING: Unresolved symbol '%s' in %s" % (sym, `files`) +for sym, files in unresolved_symbols.items(): + print ("WARNING: Unresolved symbol '%s' in %s" % (sym, files)) -k = dependencies.keys() -k.sort() +k = sorted(dependencies) for fn in k: dependencies[fn].sort() - print "%s: %s" % (fn, string.join(dependencies[fn], " ")) + print ("%s: %s" % (fn, string.join(dependencies[fn], " "))) diff --git a/src/utils/qpaeq b/src/utils/qpaeq index 651d3a4e9..c58a44a86 100755 --- a/src/utils/qpaeq +++ b/src/utils/qpaeq @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # qpaeq is a equalizer interface for pulseaudio's equalizer sinks # Copyright (C) 2009 Jason Newton <nevion@gmail.com # |