22 lines
973 B
Diff
22 lines
973 B
Diff
diff --git traitlets/config/loader.py traitlets/config/loader.py
|
|
index 803b362..ae7e6c9 100644
|
|
--- traitlets/config/loader.py
|
|
+++ traitlets/config/loader.py
|
|
@@ -792,7 +792,7 @@ class KVArgParseConfigLoader(ArgParseConfigLoader):
|
|
nargs = '?'
|
|
else:
|
|
nargs = None
|
|
- if len(key) is 1:
|
|
+ if len(key) == 1:
|
|
paa('-'+key, '--'+key, type=text_type, dest=value, nargs=nargs)
|
|
else:
|
|
paa('--'+key, type=text_type, dest=value, nargs=nargs)
|
|
@@ -801,7 +801,7 @@ class KVArgParseConfigLoader(ArgParseConfigLoader):
|
|
#
|
|
self.alias_flags[self.aliases[key]] = value
|
|
continue
|
|
- if len(key) is 1:
|
|
+ if len(key) == 1:
|
|
paa('-'+key, '--'+key, action='append_const', dest='_flags', const=value)
|
|
else:
|
|
paa('--'+key, action='append_const', dest='_flags', const=value)
|