diff options
author | John Kacur <jkacur@redhat.com> | 2018-05-09 09:04:41 +0100 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2018-05-09 09:04:41 +0100 |
commit | 72c16426a55d5980db02aacf9ea887bf6dfadcd7 (patch) | |
tree | ccefbf9d799fc9ccd2beadfd69e4e4aec26000d4 | |
parent | 8b4d031bc09779539cbf2c9031f2204ba573a316 (diff) | |
download | tuna-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-x | tuna-cmd.py | 2 |
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)) |