fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
21 lines
515 B
Python
21 lines
515 B
Python
import operator
|
|
|
|
from toolz.functoolz import curry
|
|
|
|
|
|
# Tests will catch if/when this needs updated
|
|
IGNORE = {
|
|
"__abs__", "__index__", "__inv__", "__invert__", "__neg__", "__not__",
|
|
"__pos__", "_abs", "abs", "attrgetter", "index", "inv", "invert",
|
|
"is_none", "is_not_none", "itemgetter", "neg", "not_", "pos", "truth"
|
|
}
|
|
locals().update(
|
|
{name: f if name in IGNORE else curry(f)
|
|
for name, f in vars(operator).items() if callable(f)}
|
|
)
|
|
|
|
# Clean up the namespace.
|
|
del IGNORE
|
|
del curry
|
|
del operator
|