use spaces rather then tabs + minor pep8 edits.

This commit is contained in:
Campbell Barton
2011-03-21 22:37:08 +00:00
parent 379f55f54c
commit 4bca2e455d
3 changed files with 122 additions and 110 deletions

View File

@@ -25,6 +25,7 @@ import subprocess
import sys
import zipfile
# find release directory
def find_release_directory():
for d in os.listdir('.'):
@@ -32,7 +33,7 @@ def find_release_directory():
rd = os.path.join(d, 'release')
if os.path.exists(rd):
return rd
return None
# clean release directory if it already exists
@@ -84,4 +85,3 @@ try:
except Exception, ex:
sys.stderr.write('Create buildbot_upload.zip failed' + str(ex) + '\n')
sys.exit(1)