You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dc...@apache.org on 2019/12/12 13:50:52 UTC
[thrift] 01/02: Revert "Revert "Remove unnecessary
TException.message hack""
This is an automated email from the ASF dual-hosted git repository.
dcelasun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
commit 9320f891d7d972fc2cc4f9569b66767c5dfc4242
Author: Elvis Pranskevichus <el...@pinterest.com>
AuthorDate: Wed Dec 11 16:51:12 2019 -0500
Revert "Revert "Remove unnecessary TException.message hack""
This reverts commit 3d9f50d61728d377951f9b6df5f19196f6b3af46.
---
lib/py/src/Thrift.py | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/lib/py/src/Thrift.py b/lib/py/src/Thrift.py
index c390cbb..ef655ea 100644
--- a/lib/py/src/Thrift.py
+++ b/lib/py/src/Thrift.py
@@ -17,8 +17,6 @@
# under the License.
#
-import sys
-
class TType(object):
STOP = 0
@@ -90,15 +88,6 @@ class TProcessor(object):
class TException(Exception):
"""Base class for all thrift exceptions."""
- # BaseException.message is deprecated in Python v[2.6,3.0)
- if (2, 6, 0) <= sys.version_info < (3, 0):
- def _get_message(self):
- return self._message
-
- def _set_message(self, message):
- self._message = message
- message = property(_get_message, _set_message)
-
def __init__(self, message=None):
Exception.__init__(self, message)
self.message = message