Em Wed, May 09, 2018 at 11:19:01AM +0100, John Kacur escreveu:
in getopt.getopt we were passing "int" as the variable long
perhaps
as a result of the automatic conversions in 2to3
Can you ellaborate more on this "2to3" for the benefit of people still
not knowing all the details of a conversion from python2 to python3?
I.e. should this be like that since day 1, even in a python2 only system
and it was using just by sheer luck?
- Arnaldo
> 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
> _______________________________________________
> tuna-devel mailing list -- tuna-devel(a)lists.fedorahosted.org
> To unsubscribe send an email to tuna-devel-leave(a)lists.fedorahosted.org