diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-29 13:56:20 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-29 14:48:54 +0200 |
| commit | 7cbfa4711033e7f0d6b730a2ad22fd1caa84beea (patch) | |
| tree | 1e39fa9543b6c4a0a29043cf3059739638129af4 /testsuite.py | |
| parent | 5fea36ffd71d8f908133d091860ef4b139cc7e81 (diff) | |
Fix undef. assign warning in set_user_value()
Previously we'd crash instead of printing the warning, because we didn't
pass 'filename' and 'linenr' to _stderr_msg(). This code path currently
can't be reached via load_config() and needs an explicit
set_user_value(), so the bug went undetected.
Fix by breaking out a separate _warn_undef_assign() that defaults
'filename' and 'linenr' to None, similar to _warn().
Diffstat (limited to 'testsuite.py')
0 files changed, 0 insertions, 0 deletions
