summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-05-04 13:33:03 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-05-12 21:38:17 +0200
commit521bc6056edc5252f2256664f4eacba13a3749e3 (patch)
tree247032af44f45bd5f1e441452a6bfc0edca94f2f /python
parent504fca732a3ed0865c39772767ee520f99a93cad (diff)
downloadsamba-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.py2
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),