]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
os.get_exec_path() ignores BytesWarning instead of recoding them
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 6 Nov 2010 12:59:33 +0000 (12:59 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 6 Nov 2010 12:59:33 +0000 (12:59 +0000)
commit273b7668704c97db1fa36e45eded391a73c5e73f
treea8eef426bf857741cdb2416c1854864190c8d83e
parent6881886389ca422395a4c8156ae8aa6394904ea3
os.get_exec_path() ignores BytesWarning instead of recoding them

Use only one global warning.catch_warnings() context, instead of two local
contexts. Improve also the explaination why the function uses a local import.
Lib/os.py