Thrift: Whitespace cleanup.
Summary:
- Expanded tabs to spaces where spaces were the norm.
- Deleted almost all trailing whitespace.
- Added newlines to the ends of a few files.
- Ran dos2unix on one file or two.
Reviewed By: mcslee
Test Plan: git diff -b
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/py/TestClient.py b/test/py/TestClient.py
index 63ec1d0..7e58dfe 100755
--- a/test/py/TestClient.py
+++ b/test/py/TestClient.py
@@ -15,7 +15,7 @@
parser = OptionParser()
-
+
parser.add_option("--port", type="int", dest="port", default=9090)
parser.add_option("--host", type="string", dest="host", default='localhost')
parser.add_option("--framed-input", action="store_true", dest="framed_input")
@@ -24,12 +24,12 @@
(options, args) = parser.parse_args()
class AbstractTest(unittest.TestCase):
-
+
def setUp(self):
global options
-
+
socket = TSocket.TSocket(options.host, options.port)
-
+
# Frame or buffer depending upon args
if options.framed_input or options.framed_output:
self.transport = TTransport.TFramedTransport(socket, options.framed_input, options.framed_output)
@@ -37,17 +37,17 @@
self.transport = TTransport.TBufferedTransport(socket)
self.transport.open()
-
+
protocol = self.protocol_factory.getProtocol(self.transport)
self.client = ThriftTest.Client(protocol)
-
+
def tearDown(self):
# Close!
self.transport.close()
def testVoid(self):
self.client.testVoid()
-
+
def testString(self):
self.assertEqual(self.client.testString('Python'), 'Python')