You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "cclauss (JIRA)" <ji...@apache.org> on 2018/03/17 13:37:00 UTC

[jira] [Updated] (BEAM-3872) BaseException.message deprecated as of Python 2.6 and removed in Python 3

     [ https://issues.apache.org/jira/browse/BEAM-3872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

cclauss updated BEAM-3872:
--------------------------
    Description: 
From the Travis logs...

./sdks/python/apache_beam/typehints/typecheck.py:179: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  six.raise_from(TypeCheckError(e.message), sys.exc_info()[2])

e.args[0] should be used in place of e.message

  was:
From the Travis logs...

./sdks/python/apache_beam/typehints/typecheck.py:179: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  six.raise_from(TypeCheckError(e.message), sys.exc_info()[2])

e.args[1] should be used in place of e.message


> BaseException.message deprecated as of Python 2.6 and removed in Python 3
> -------------------------------------------------------------------------
>
>                 Key: BEAM-3872
>                 URL: https://issues.apache.org/jira/browse/BEAM-3872
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: cclauss
>            Assignee: Ahmet Altay
>            Priority: Minor
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> From the Travis logs...
> ./sdks/python/apache_beam/typehints/typecheck.py:179: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   six.raise_from(TypeCheckError(e.message), sys.exc_info()[2])
> e.args[0] should be used in place of e.message



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)