[Python-checkins] r66213 - python/trunk/Lib/platform.py

Brett Cannon brett at python.org
Thu Sep 4 20:35:05 CEST 2008


On Thu, Sep 4, 2008 at 4:15 AM, hirokazu.yamamoto
<python-checkins at python.org> wrote:
> Author: hirokazu.yamamoto
> Date: Thu Sep  4 13:15:14 2008
> New Revision: 66213
>
> Log:
> Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
>

Please make sure to mention who does the code review when doing a
commit during an rc, Hirokazu.

> Modified:
>   python/trunk/Lib/platform.py
>
> Modified: python/trunk/Lib/platform.py
> ==============================================================================
> --- python/trunk/Lib/platform.py        (original)
> +++ python/trunk/Lib/platform.py        Thu Sep  4 13:15:14 2008
> @@ -933,7 +933,7 @@
>     filepath = _abspath(filepath)
>     while os.path.islink(filepath):
>         filepath = os.path.normpath(
> -            os.path.join(filepath,os.readlink(filepath)))
> +            os.path.join(os.path.dirname(filepath),os.readlink(filepath)))
>     return filepath
>
>  def _syscmd_uname(option,default=''):
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>


More information about the Python-checkins mailing list