diff --git a/doc/make.py b/doc/make.py index 7df050d13ad4..8e37ec7f6e36 100755 --- a/doc/make.py +++ b/doc/make.py @@ -89,20 +89,20 @@ def copytree(src, dst, symlinks=False, ignore=None): copy2(srcname, dstname) # catch the Error from the recursive copytree so that we can # continue with other files - except Error, err: + except Error as err: errors.extend(err.args[0]) - except EnvironmentError, why: + except EnvironmentError as why: errors.append((srcname, dstname, str(why))) try: copystat(src, dst) - except OSError, why: + except OSError as why: if WindowsError is not None and isinstance(why, WindowsError): # Copying file access times may fail on Windows pass else: errors.extend((src, dst, str(why))) if errors: - raise Error, errors + raise Error(errors) ### End compatibility block for pre-v2.6 ###