aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-01-24 02:26:57 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-01-24 02:26:57 +0000
commita21fd8b0a6734597e438f8d4633587e07e1f387e (patch)
tree80c03cdf48715222ac462155ed2a108c854f0399 /package/mac80211
parent7472c34a933568182caff61ea4d53a0e32885dfc (diff)
downloadupstream-a21fd8b0a6734597e438f8d4633587e07e1f387e.tar.gz
upstream-a21fd8b0a6734597e438f8d4633587e07e1f387e.tar.bz2
upstream-a21fd8b0a6734597e438f8d4633587e07e1f387e.zip
[package] mac80211: make b43-fwsquash.py work with python 3.x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rwxr-xr-xpackage/mac80211/files/host_bin/b43-fwsquash.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/package/mac80211/files/host_bin/b43-fwsquash.py b/package/mac80211/files/host_bin/b43-fwsquash.py
index 8c5859c421..ba47da818f 100755
--- a/package/mac80211/files/host_bin/b43-fwsquash.py
+++ b/package/mac80211/files/host_bin/b43-fwsquash.py
@@ -12,16 +12,16 @@ import sys
import os
def usage():
- print "Usage: %s PHYTYPES COREREVS /path/to/extracted/firmware" % sys.argv[0]
- print ""
- print "PHYTYPES is a comma separated list of:"
- print "A => A-PHY"
- print "AG => Dual A-PHY G-PHY"
- print "G => G-PHY"
- print "LP => LP-PHY"
- print "N => N-PHY"
- print ""
- print "COREREVS is a comma separated list of core revision numbers."
+ print("Usage: %s PHYTYPES COREREVS /path/to/extracted/firmware" % sys.argv[0])
+ print("")
+ print("PHYTYPES is a comma separated list of:")
+ print("A => A-PHY")
+ print("AG => Dual A-PHY G-PHY")
+ print("G => G-PHY")
+ print("LP => LP-PHY")
+ print("N => N-PHY")
+ print("")
+ print("COREREVS is a comma separated list of core revision numbers.")
if len(sys.argv) != 4:
usage()
@@ -35,7 +35,7 @@ phytypes = phytypes.split(',')
try:
corerevs = map(lambda r: int(r), corerevs.split(','))
except ValueError:
- print "ERROR: \"%s\" is not a valid COREREVS string\n" % corerevs
+ print("ERROR: \"%s\" is not a valid COREREVS string\n" % corerevs)
usage()
sys.exit(1)
@@ -43,7 +43,7 @@ except ValueError:
fwfiles = os.listdir(fwpath)
fwfiles = filter(lambda str: str.endswith(".fw"), fwfiles)
if not fwfiles:
- print "ERROR: No firmware files found in %s" % fwpath
+ print("ERROR: No firmware files found in %s" % fwpath)
sys.exit(1)
required_fwfiles = []
@@ -102,10 +102,10 @@ for f in fwfiles:
phytypes_match(phytypes, initvalmapping[f][1]):
required_fwfiles += [f]
continue
- print "WARNING: Firmware file %s not found in the mapping lists" % f
+ print("WARNING: Firmware file %s not found in the mapping lists" % f)
for f in fwfiles:
if f not in required_fwfiles:
- print "Deleting %s" % f
+ print("Deleting %s" % f)
os.unlink(fwpath + '/' + f)