X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexamine_package.py;h=edb9384b6c5be92b0e20ff23544ba1a031922ef4;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=8e2ce20b987135538e4a0d76cab2be7a8df72665;hpb=33ae2c253742285f9ce7b8bb37a53415eb65260f;p=dak.git diff --git a/dak/examine_package.py b/dak/examine_package.py index 8e2ce20b..edb9384b 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -507,7 +507,7 @@ def get_readme_source (dsc_filename): try: shutil.rmtree(tempdir) - except OSError, e: + except OSError as e: if errno.errorcode[e.errno] != 'EACCES': res += "%s: couldn't remove tmp dir %s for source tree." % (dsc_filename, tempdir) @@ -634,7 +634,7 @@ def main (): # Reset stdout here so future less invocations aren't FUBAR less_fd.close() sys.stdout = stdout_fd - except IOError, e: + except IOError as e: if errno.errorcode[e.errno] == 'EPIPE': utils.warn("[examine-package] Caught EPIPE; skipping.") pass