Apache Lucene open-source search software
read() returns a str which is already UTF-8 and doesn't have a decode method anymore
Simon Willnauer3199f6e3bfd5
diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.pyindex 8a4247d61e4..06b201c86d6 100644--- a/dev-tools/scripts/buildAndPushRelease.py+++ b/dev-tools/scripts/buildAndPushRelease.py@@ -115,7 +115,7 @@ def prepare(root, version, gpgKeyID, doTest):def push(version, root, rev, rcNum, username):print('Push...')dir = 'lucene-solr-%s-RC%d-rev%s' % (version, rcNum, rev)- s = os.popen('ssh %[email protected] "ls -ld public_html/staging_area/%s" 2>&1' % (username, dir)).read().decode('UTF-8')+ s = os.popen('ssh %[email protected] "ls -ld public_html/staging_area/%s" 2>&1' % (username, dir)).read()if 'no such file or directory' not in s.lower():print(' Remove old dir...')run('ssh %[email protected] "chmod -R u+rwX public_html/staging_area/%s; rm -rf public_html/staging_area/%s"' %