This is an automated email from the ASF dual-hosted git repository.
stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new 175dae33d IMPALA-11974: Fix xrange call in collect_minidumps.py
175dae33d is described below
commit 175dae33d9a224ef69decc2d3887e847755d4c9e
Author: Tamas Mate <[email protected]>
AuthorDate: Thu Apr 13 10:25:13 2023 +0200
IMPALA-11974: Fix xrange call in collect_minidumps.py
Python3 deprecates xrange operator, this commit replaces it with the new
range operator similar to earlier replacements in IMPALA-11974.
Testing:
- Tested that Python3 parses this file successfully
Change-Id: I155725d8edac9222064c88912b19f0591c690afe
Reviewed-on: http://gerrit.cloudera.org:8080/19727
Reviewed-by: Riza Suminto <[email protected]>
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
bin/collect_minidumps.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/collect_minidumps.py b/bin/collect_minidumps.py
index db233a946..c4fc601ea 100755
--- a/bin/collect_minidumps.py
+++ b/bin/collect_minidumps.py
@@ -74,7 +74,7 @@ class FileArchiver(object):
size = 0
else:
with closing(tarfile.open(self.output_file_path, mode='w:gz')) as out:
- for i in xrange(num_files):
+ for i in range(num_files):
out.add(self.file_list[i])
size = os.stat(self.output_file_path).st_size
self.resulting_sizes[num_files] = size