Re: [PATCH nft] tests: py: fix python3.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shekhar,

On Wed, May 15, 2019 at 12:37:44PM +0530, Shekhar Sharma wrote:
> This changes all the python2 files to python3.
> Signed-off-by: Shekhar Sharma <shekhar250198@xxxxxxxxx>
> ---
>  py/nftables.py              |  2 +-
>  tests/json_echo/run-test.py | 40 ++++++++++++++++++-------------------
>  tests/py/nft-test.py        | 32 ++++++++++++++---------------
>  3 files changed, 37 insertions(+), 37 deletions(-)
> 
> diff --git a/py/nftables.py b/py/nftables.py
> index 33cd2dfd..6503aedd 100644
> --- a/py/nftables.py
> +++ b/py/nftables.py
> @@ -297,7 +297,7 @@ class Nftables:
>          val = self.nft_ctx_output_get_debug(self.__ctx)
>  
>          names = []
> -        for n,v in self.debug_flags.items():
> +        for n,v in linst(self.debug_flags.items()):

typo, should be list()

[..]



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux