Skip to content

Commit 875fc67

Browse files
committed
Python 2.7 fixes
1 parent 074bb04 commit 875fc67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reportportal_client/core/log_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ def __init__(self, rp_url, session, api_version, launch_id, project_name,
7676
def _send_batch(self):
7777
"""Send existing batch logs to the worker."""
7878
# copy list to not modify batch by `self._batch.clear()`
79-
batch = RPLogBatch(list(self._batch))
79+
batch = RPLogBatch(self._batch)
8080
http_request = HttpRequest(
8181
self.session.post, self._log_endpoint, files=batch.payload,
8282
verify_ssl=self.verify_ssl)
8383
batch.http_request = http_request
8484
self._worker.send(batch)
85-
self._batch.clear()
85+
self._batch = []
8686
self._payload_size = helpers.TYPICAL_MULTIPART_FOOTER_LENGTH
8787

8888
def _log_process(self, log_req):

0 commit comments

Comments
 (0)