diff options
author | Shih-wei Liao <sliao@google.com> | 2011-03-16 11:51:06 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2011-03-16 11:51:06 -0700 |
commit | 12c27e38e875ae53f47e4a1b1c00a601457c20f2 (patch) | |
tree | 014684d1edd1ffacd090e9917489825aa6e4660e | |
parent | 2010bbd9e389c9745a03a21d1cfa87acacda6abb (diff) | |
download | external_llvm-12c27e38e875ae53f47e4a1b1c00a601457c20f2.zip external_llvm-12c27e38e875ae53f47e4a1b1c00a601457c20f2.tar.gz external_llvm-12c27e38e875ae53f47e4a1b1c00a601457c20f2.tar.bz2 |
Fix build breakage by removing the use of Python 3.0 features.
E.g., "as" syntax is for 3.0 compatibility. Use Python 2.4 syntax.
Change-Id: I4bf48240c6fb1cf953b92fe8ad2c87362ce1a2f7
-rwxr-xr-x | copy-diff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/copy-diff.py b/copy-diff.py index 3890e27..076f2da 100755 --- a/copy-diff.py +++ b/copy-diff.py @@ -45,7 +45,7 @@ def copyfile(src, dest): if not os.path.exists(destdir): try: os.makedirs(destdir) - except os.error as e: + except os.error, e: raise ValueError('Unable to create directory ' + destdir) elif not os.path.isdir(destdir): raise ValueError(destdir + ' is not a directory') @@ -68,7 +68,7 @@ def main(): else: try: copyfile(srcfile, destfile) - except ValueError as e: + except ValueError, e: print >> sys.stderr, 'ERROR: ', e sys.exit(1) |