豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 498a53e

Browse files
committed
refactor: do not test for boolean with is
1 parent 1c13d78 commit 498a53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polyfills/stdlib/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def cmp(a, b):
133133
# Convert the key function to a cmp function, since the `key` argument is not available.
134134
elements.sort(key_to_cmp(key))
135135

136-
if reverse is True:
136+
if reverse:
137137
elements.reverse()
138138

139139
value = []

0 commit comments

Comments
 (0)