summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2018-05-09 09:04:41 +0100
committerJohn Kacur <jkacur@redhat.com>2018-05-09 09:04:41 +0100
commit72c16426a55d5980db02aacf9ea887bf6dfadcd7 (patch)
treeccefbf9d799fc9ccd2beadfd69e4e4aec26000d4
parent8b4d031bc09779539cbf2c9031f2204ba573a316 (diff)
downloadtuna-72c16426a55d5980db02aacf9ea887bf6dfadcd7.tar.gz
tuna: Fix TypeError: 'type' object is not iterable
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@redhat.com>
-rwxr-xr-xtuna-cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuna-cmd.py b/tuna-cmd.py
index 7c4e26c..b494b26 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))