python3-traitlets: update to 5.0.4.

This commit is contained in:
Andrew J. Hesford 2020-09-07 09:11:36 -04:00 committed by Andrew J. Hesford
parent dc83bc8724
commit fb6c584b7c
2 changed files with 3 additions and 26 deletions

View file

@ -1,22 +0,0 @@
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)

View file

@ -1,8 +1,7 @@
# Template file for 'python3-traitlets'
pkgname=python3-traitlets
version=4.3.3
revision=3
archs=noarch
version=5.0.4
revision=1
wrksrc="traitlets-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@ -13,7 +12,7 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/ipython/traitlets"
distfiles="${PYPI_SITE}/t/traitlets/traitlets-${version}.tar.gz"
checksum=d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7
checksum=86c9351f94f95de9db8a04ad8e892da299a088a64fd283f9f6f18770ae5eae1b
do_check() {
pytest