read() returns a str which is already UTF-8 and doesn't have a decode method anymore

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1468841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2013-04-17 11:19:25 +00:00
parent 836cb113f1
commit 3199f6e3bf
1 changed files with 1 additions and 1 deletions

View File

@ -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 %s@people.apache.org "ls -ld public_html/staging_area/%s" 2>&1' % (username, dir)).read().decode('UTF-8')
s = os.popen('ssh %s@people.apache.org "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 %s@people.apache.org "chmod -R u+rwX public_html/staging_area/%s; rm -rf public_html/staging_area/%s"' %