This is an automated email from the ASF dual-hosted git repository.
FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new a79ff1cf469 fix: remove redundant Python assignments (#19829)
a79ff1cf469 is described below
commit a79ff1cf4690118a2b55db83bbe3d56348e5eafa
Author: Frank Chen <[email protected]>
AuthorDate: Tue Aug 4 10:19:42 2026 +0800
fix: remove redundant Python assignments (#19829)
---
distribution/bin/jar-notice-lister.py | 6 +++---
examples/bin/start-druid-main.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/distribution/bin/jar-notice-lister.py
b/distribution/bin/jar-notice-lister.py
index 677da92bb31..1297fbf537f 100755
--- a/distribution/bin/jar-notice-lister.py
+++ b/distribution/bin/jar-notice-lister.py
@@ -75,10 +75,10 @@ def get_notices(tmp_jar_path):
for line in outstr.splitlines():
try:
command = "jar xf {} {}".format(jar_file, line)
- outstr = subprocess.check_output(command,
shell=True).decode('UTF-8')
+ subprocess.check_output(command, shell=True)
command = "mv {} {}.NOTICE-FILE".format(line, jar_file)
- outstr = subprocess.check_output(command,
shell=True).decode('UTF-8')
+ subprocess.check_output(command, shell=True)
command = "cat {}.NOTICE-FILE".format(jar_file)
outstr = subprocess.check_output(command,
shell=True).decode('UTF-8')
@@ -95,4 +95,4 @@ if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
- print('Interrupted, closing.')
\ No newline at end of file
+ print('Interrupted, closing.')
diff --git a/examples/bin/start-druid-main.py b/examples/bin/start-druid-main.py
index f040f21c2f7..aebca7e365b 100644
--- a/examples/bin/start-druid-main.py
+++ b/examples/bin/start-druid-main.py
@@ -529,7 +529,7 @@ def distribute_memory(services, total_memory):
if service in MINIMUM_MEMORY_MB and allocated_memory <
MINIMUM_MEMORY_MB.get(service):
allocated_memory = MINIMUM_MEMORY_MB.get(service)
- service_memory_config[service], allocated_memory =
build_memory_config(service, allocated_memory)
+ service_memory_config[service] = build_memory_config(service,
allocated_memory)[0]
print_if_verbose('\nMemory distribution for services:')
for key, value in service_memory_config.items():
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]