A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-October/105015.html below:

[Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

[Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.pyBenjamin Peterson benjamin at python.org
Fri Oct 29 04:31:42 CEST 2010
2010/10/28 victor.stinner <python-checkins at python.org>:
> Author: victor.stinner
> Date: Fri Oct 29 02:38:58 2010
> New Revision: 85902
>
> Log:
> Issue #10210: os.get_exec_path() ignores BytesWarning warnings
>
>
> Modified:
>   python/branches/py3k/Lib/os.py
>   python/branches/py3k/Lib/test/test_os.py
>
> Modified: python/branches/py3k/Lib/os.py
> ==============================================================================
> --- python/branches/py3k/Lib/os.py      (original)
> +++ python/branches/py3k/Lib/os.py      Fri Oct 29 02:38:58 2010
> @@ -382,18 +382,32 @@
>     *env* must be an environment variable dict or None.  If *env* is None,
>     os.environ will be used.
>     """
> +    # Use a local import instead of a global import to avoid bootstrap issue:
> +    # the os module is used to build Python extensions.
> +    import warnings

This sort of function import should be avoided.



-- 
Regards,
Benjamin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4