summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorRoland Kaufmann <roland.kaufmann@uni.no>2016-12-09 09:14:12 +0100
committerRoland Kaufmann <roland.kaufmann@uni.no>2016-12-09 09:14:12 +0100
commita98bd6bd070bb595f559727ace2f2bc9747ec7d7 (patch)
treea7e1e10e591b96d0f55877c2da01aaa6de556e5a /numpy/lib/nanfunctions.py
parent98b3eabe44c97c3aeb66cd6aaf52c747f97d5ac8 (diff)
downloadnumpy-a98bd6bd070bb595f559727ace2f2bc9747ec7d7.tar.gz
STY: Avoid using string formatting in log calls
The log class (derived from distutils.log) does string formatting with extra arguments passed, if (and only if) the log level is above the set threshold. That way, the cost of string formatting only incurs if the message is actually going to be displayed.
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions