in getopt.getopt we were passing "int" as the variable long perhaps
as a result of the automatic conversions in 2to3
Fix this
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
tuna-cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index 7c4e26c42742..b494b267b234 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -468,7 +468,7 @@ def main():
if have_inet_diag:
short += "n"
int.append("show_sockets")
- opts, args = getopt.getopt(sys.argv[1:], short, int)
+ opts, args = getopt.getopt(sys.argv[1:], short, long)
except getopt.GetoptError as err:
usage()
print(str(err))
--
2.14.3