提交 0013aea5 authored 作者: Maxim Kochurov's avatar Maxim Kochurov 提交者: Maxim Kochurov

remove functions that are not referenced anywhere

上级 ff1800d5
...@@ -16,7 +16,6 @@ from typing import List, Set ...@@ -16,7 +16,6 @@ from typing import List, Set
__all__ = [ __all__ = [
"cmp",
"get_unbound_function", "get_unbound_function",
"maybe_add_to_os_environ_pathlist", "maybe_add_to_os_environ_pathlist",
"DefaultOrderedDict", "DefaultOrderedDict",
...@@ -106,22 +105,6 @@ def exc_message(e): ...@@ -106,22 +105,6 @@ def exc_message(e):
return msg return msg
def cmp(x, y):
"""Return -1 if x < y, 0 if x == y, 1 if x > y."""
return (x > y) - (x < y)
def key_to_cmp(key):
"""
comparator function based on "key" function
"""
def key_cmp(a, b):
return cmp(key(a), key(b))
return key_cmp
def get_unbound_function(unbound): def get_unbound_function(unbound):
# Op.make_thunk isn't bound, so don't have a __func__ attr. # Op.make_thunk isn't bound, so don't have a __func__ attr.
# But bound method, have a __func__ method that point to the # But bound method, have a __func__ method that point to the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论