void-packages/srcpkgs/python3-traitlets/patches/python3.8-warning.patch
2020-04-11 12:40:57 +02:00

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)