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

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

     [ https://issues.apache.org/jira/browse/BEAM-3872?focusedWorklogId=81578&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-81578 ]

ASF GitHub Bot logged work on BEAM-3872:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Mar/18 13:46
            Start Date: 17/Mar/18 13:46
    Worklog Time Spent: 10m 
      Work Description: cclauss opened a new pull request #4886: [BEAM-3872] Change Exception.message --> Exception.args[0]
URL: https://github.com/apache/beam/pull/4886
 
 
   Fixes https://issues.apache.org/jira/browse/BEAM-3872
   
   Replace __Exception.message__ with __BaseException.args[0]__ for Python 3.
   
   __Exception.message__ deprecated as of Python 2.6 and removed in Python 3 in favor of __BaseException.args[0]__ as discussed in [PEP 352](https://www.python.org/dev/peps/pep-0352/#id8).
   
   ------------------------
   
   Follow this checklist to help us incorporate your contribution quickly and easily:
   
    - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/projects/BEAM/issues/) filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
    - [x] Format the pull request title like `[BEAM-XXX] Fixes bug in ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA issue.
    - [x] Write a pull request description that is detailed enough to understand:
      - [x] What the pull request does
      - [x] Why it does it
      - [x] How it does it
      - [x] Why this approach
    - [x] Each commit in the pull request should have a meaningful subject line and body.
    - [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
    - [x] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 81578)
            Time Spent: 10m
    Remaining Estimate: 0h  (was: 1m)

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)