aboutsummaryrefslogtreecommitdiffstats
path: root/db2fw.py
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-08-22 21:46:27 +0200
committerSeth Forshee <seth.forshee@canonical.com>2019-10-29 08:50:53 -0500
commit651e39dee8605995b736b6056c6f7dc5c5a9c948 (patch)
tree4826ad615b8d5db5270d139a8eb0f0b3f3a455a9 /db2fw.py
parent91b2b6795cb39e77145617aab2f591abf16582f1 (diff)
downloadwireless-regdb-651e39dee8605995b736b6056c6f7dc5c5a9c948.tar.gz
regdb: fix compatibility with python2
Various changes in the commit mentioned below broke compatibility with python2. Restore it in a way that makes it worth with both versions. Fixes: f3c4969c2485 ("wireless-regdb: make scripts compatible with Python 3") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Diffstat (limited to 'db2fw.py')
-rwxr-xr-xdb2fw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db2fw.py b/db2fw.py
index 0c0f030..3affd5a 100755
--- a/db2fw.py
+++ b/db2fw.py
@@ -85,7 +85,7 @@ countrynames = list(countries)
countrynames.sort()
for alpha2 in countrynames:
coll = countries[alpha2]
- output.write(struct.pack('>BB', alpha2[0], alpha2[1]))
+ output.write(struct.pack('>2s', alpha2))
country_ptrs[alpha2] = PTR(output)
output.write(b'\x00' * 4)