commit | 8bb593e69a639246e56c4ee547f53e4269133d10 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | 周六 1月 24 19:37:41 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | 周六 1月 24 19:37:41 2009 +0000 |
tree | dff8e4701bc2f05bbc785008a58705d3803d11f5 | |
parent | 4371038cd1e1a0a0ef5283bfd540c7623fbe7514 [diff] [blame] |
THRIFT-284. python: Update tutorial files to use repr git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@737424 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tutorial/py/PythonClient.py b/tutorial/py/PythonClient.py index 05f1719..cf96040 100755 --- a/tutorial/py/PythonClient.py +++ b/tutorial/py/PythonClient.py
@@ -44,7 +44,7 @@ quotient = client.calculate(1, work) print 'Whoa? You know how to divide by zero?' except InvalidOperation, io: - print 'InvalidOperation: %s' % (io.__str__()) + print 'InvalidOperation: %r' % io work.op = Operation.SUBTRACT work.num1 = 15