Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-02-09 05:07:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-09 05:10:34 +0300
commit7262ac6202eb9258293473f35a24f375f9d6f635 (patch)
tree1fb155adace59f89715f293a5b381fd6ef07c5a5 /build_files/package_spec
parent191b8951f7afae26117cc5386b979557b84dc437 (diff)
Fix T61332: Python3 syntax errors
Diffstat (limited to 'build_files/package_spec')
-rwxr-xr-xbuild_files/package_spec/build_archive.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/build_files/package_spec/build_archive.py b/build_files/package_spec/build_archive.py
index bd00984c74b..5ca2f319d87 100755
--- a/build_files/package_spec/build_archive.py
+++ b/build_files/package_spec/build_archive.py
@@ -29,7 +29,7 @@ try:
os.remove(package_archive)
if os.path.exists(package_dir):
shutil.rmtree(package_dir)
-except Exception, ex:
+except Exception as ex:
sys.stderr.write('Failed to clean up old package files: ' + str(ex) + '\n')
sys.exit(1)
@@ -40,7 +40,7 @@ try:
for f in os.listdir(package_dir):
if f.startswith('makes'):
os.remove(os.path.join(package_dir, f))
-except Exception, ex:
+except Exception as ex:
sys.stderr.write('Failed to copy install directory: ' + str(ex) + '\n')
sys.exit(1)
@@ -58,13 +58,13 @@ try:
sys.exit(-1)
subprocess.call(archive_cmd)
-except Exception, ex:
+except Exception as ex:
sys.stderr.write('Failed to create package archive: ' + str(ex) + '\n')
sys.exit(1)
# empty temporary package dir
try:
shutil.rmtree(package_dir)
-except Exception, ex:
+except Exception as ex:
sys.stderr.write('Failed to clean up package directory: ' + str(ex) + '\n')
sys.exit(1)