diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2018-02-14 11:19:49 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-02-15 05:40:55 +0100 |
commit | 578786c38b65e5c3925ab9f605cfd661d0950cc2 (patch) | |
tree | 1a019e930eea73603f31874d07612df7d3a48d27 /buildtools/wafsamba/samba_dist.py | |
parent | 5fbb47144328b6bd4e52369c904d81633e5fdb02 (diff) | |
download | samba-578786c38b65e5c3925ab9f605cfd661d0950cc2.tar.gz |
buildtools python: convert 'except X, e' to 'except X as e'
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 15 05:40:55 CET 2018 on sn-devel-144
Diffstat (limited to 'buildtools/wafsamba/samba_dist.py')
-rw-r--r-- | buildtools/wafsamba/samba_dist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index 2e52820697b..8d516320a25 100644 --- a/buildtools/wafsamba/samba_dist.py +++ b/buildtools/wafsamba/samba_dist.py @@ -167,7 +167,7 @@ def dist(appname='', version=''): absdir = os.path.join(srcdir, dir) try: files = vcs_dir_contents(absdir) - except Exception, e: + except Exception as e: Logs.error('unable to get contents of %s: %s' % (absdir, e)) sys.exit(1) add_files_to_tarball(tar, srcdir, dir, dist_base, destdir, blacklist, files) |