mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
Make network/make_oui.py Python 2 and 3 compatible
This commit is contained in:
parent
eba4da1327
commit
7be97661ed
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/python
|
||||
import os
|
||||
import six
|
||||
|
||||
base = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
|
@ -25,7 +26,7 @@ for line in lines:
|
|||
|
||||
code = "map[string]string {\n"
|
||||
|
||||
for prefix, vendor in m.iteritems():
|
||||
for prefix, vendor in six.iteritems(m):
|
||||
code += " \"%s\": \"%s\",\n" % ( prefix, vendor )
|
||||
|
||||
code += "}\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue