Skip to content

Commit c752b5c

Browse files
authored
Use four spaces for indentation in Python code (#32)
1 parent 9870ca4 commit c752b5c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: http/get_simple/python/client/client.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626
response = urllib.request.urlopen('http://localhost:8008')
2727
content_type = response.headers['Content-Type']
2828
if content_type != ARROW_STREAM_FORMAT:
29-
raise ValueError(f"Expected {ARROW_STREAM_FORMAT}, got {content_type}")
29+
raise ValueError(f"Expected {ARROW_STREAM_FORMAT}, got {content_type}")
3030

3131
batches = []
3232

3333
with pa.ipc.open_stream(response) as reader:
34-
schema = reader.schema
35-
try:
36-
while True:
37-
batches.append(reader.read_next_batch())
38-
except StopIteration:
39-
pass
34+
schema = reader.schema
35+
try:
36+
while True:
37+
batches.append(reader.read_next_batch())
38+
except StopIteration:
39+
pass
4040

4141
# or:
42-
#with pa.ipc.open_stream(response) as reader:
43-
# schema = reader.schema
44-
# batches = [b for b in reader]
42+
# with pa.ipc.open_stream(response) as reader:
43+
# schema = reader.schema
44+
# batches = [b for b in reader]
4545

4646
end_time = time.time()
4747
execution_time = end_time - start_time

0 commit comments

Comments
 (0)