diff options
| author | Noel Power <noel.power@suse.com> | 2018-05-04 13:33:03 +0100 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2018-05-12 21:38:17 +0200 |
| commit | 521bc6056edc5252f2256664f4eacba13a3749e3 (patch) | |
| tree | 247032af44f45bd5f1e441452a6bfc0edca94f2f /python | |
| parent | 504fca732a3ed0865c39772767ee520f99a93cad (diff) | |
| download | samba-521bc6056edc5252f2256664f4eacba13a3749e3.tar.gz samba-521bc6056edc5252f2256664f4eacba13a3749e3.tar.bz2 samba-521bc6056edc5252f2256664f4eacba13a3749e3.zip | |
Bulk: enclose .keys() method with list where list (from python2) expected
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/visualize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/netcmd/visualize.py b/python/samba/netcmd/visualize.py index 576f48d41ef..b9d126a8cb3 100644 --- a/python/samba/netcmd/visualize.py +++ b/python/samba/netcmd/visualize.py @@ -51,7 +51,7 @@ COMMON_OPTIONS = [ choices=['yes', 'no', 'auto']), Option("--color-scheme", help=("use this colour scheme " "(implies --color=yes)"), - choices=COLOUR_SETS.keys()), + choices=list(COLOUR_SETS.keys())), Option("-S", "--shorten-names", help="don't print long common suffixes", action='store_true', default=False), |
