From ddbb213a5784b28bf50670adee403fb278a37627 Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Mon, 31 May 2021 18:23:23 +0900 Subject: [PATCH] protocol: Code clean up Fix typo. Delete whitespace. Change-Id: If9c919ac38de2dd76df9160bee747d94af8c05ec --- protocol/examples/python/README | 4 ++-- protocol/examples/python/legacySamples/sample02.py | 1 - protocol/examples/python/legacySamples/sample03.py | 1 - protocol/examples/python/legacySamples/sample04.py | 5 +---- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/protocol/examples/python/README b/protocol/examples/python/README index 03199a7..5761fd1 100644 --- a/protocol/examples/python/README +++ b/protocol/examples/python/README @@ -2,9 +2,9 @@ python3 -m venv v -source v/bin/active +source v/bin/activate -pip3 install -r requiements.txt +pip3 install -r requirements.txt ./gen.sh diff --git a/protocol/examples/python/legacySamples/sample02.py b/protocol/examples/python/legacySamples/sample02.py index 13d2b4e..92d1d1e 100644 --- a/protocol/examples/python/legacySamples/sample02.py +++ b/protocol/examples/python/legacySamples/sample02.py @@ -110,7 +110,6 @@ def set_text(stub, text): if foundId != None: clickById(stub, foundId) - def run(): with grpc.insecure_channel('127.0.0.1:50051') as channel: stub = aurum_pb2_grpc.BootstrapStub(channel) diff --git a/protocol/examples/python/legacySamples/sample03.py b/protocol/examples/python/legacySamples/sample03.py index eaf9a3a..711874b 100644 --- a/protocol/examples/python/legacySamples/sample03.py +++ b/protocol/examples/python/legacySamples/sample03.py @@ -100,7 +100,6 @@ def set_text(stub, text): #if foundId != None: # clickById(stub, foundId) - def run(): with grpc.insecure_channel('127.0.0.1:50051') as channel: stub = aurum_pb2_grpc.BootstrapStub(channel) diff --git a/protocol/examples/python/legacySamples/sample04.py b/protocol/examples/python/legacySamples/sample04.py index d504fdd..09fc14e 100644 --- a/protocol/examples/python/legacySamples/sample04.py +++ b/protocol/examples/python/legacySamples/sample04.py @@ -111,7 +111,6 @@ def run(): foundId = findElementByText(stub, 'Title') print(foundId) clear_text(stub, foundId) - # foundId = findElementByText(stub, 'Photos') # print(foundId) @@ -121,14 +120,12 @@ def run(): # clickById(stub, foundId) # time.sleep(1.35) - + # foundId = findElementByText(stub, 'STOP') # print(foundId) # if foundId != None: # clickById(stub, foundId) - - if __name__ == '__main__': logging.basicConfig() run() -- 2.34.1