diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-01-28 15:42:42 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-29 22:06:11 +0200 |
commit | da34bea893b3b309800e0f03021a99ee58c599d6 (patch) | |
tree | fe58634de2ad20678a25292571f5bd2cfdb64847 /mesonbuild/minstall.py | |
parent | 4e31ca3abeecf0591cccc7052da34c2735759030 (diff) | |
download | meson-da34bea893b3b309800e0f03021a99ee58c599d6.zip meson-da34bea893b3b309800e0f03021a99ee58c599d6.tar.gz meson-da34bea893b3b309800e0f03021a99ee58c599d6.tar.bz2 |
pep8 py37
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 74a8497..c6b6bbf 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -101,7 +101,7 @@ def set_chown(path, user=None, group=None, dir_fd=None, follow_symlinks=True): def set_chmod(path, mode, dir_fd=None, follow_symlinks=True): try: os.chmod(path, mode, dir_fd=dir_fd, follow_symlinks=follow_symlinks) - except (NotImplementedError, OSError, SystemError) as e: + except (NotImplementedError, OSError, SystemError): if not os.path.islink(path): os.chmod(path, mode, dir_fd=dir_fd) @@ -157,7 +157,7 @@ def restore_selinux_contexts(): ''' try: subprocess.check_call(['selinuxenabled']) - except (FileNotFoundError, PermissionError, subprocess.CalledProcessError) as e: + except (FileNotFoundError, PermissionError, subprocess.CalledProcessError): # If we don't have selinux or selinuxenabled returned 1, failure # is ignored quietly. return |