diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-03-13 13:53:09 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-03-13 13:53:09 +0100 |
commit | 33463325f46f4f770fa9b7ea0e5c38f6569a8f21 (patch) | |
tree | 092c6a4e70c4a58eac42a5665c7357579e06dae4 /scripts/link_pyqt.py | |
parent | 068168f351b510725112bd8136d22fcfff41ea15 (diff) | |
download | qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.tar.gz qutebrowser-33463325f46f4f770fa9b7ea0e5c38f6569a8f21.zip |
Eschew the extraneous elses
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
Diffstat (limited to 'scripts/link_pyqt.py')
-rw-r--r-- | scripts/link_pyqt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index 096f84b3f..b8aa42c43 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -121,8 +121,7 @@ def get_lib_path(executable, name, required=True): if required: raise Error("Could not import {} with {}: {}!".format( name, executable, data)) - else: - return None + return None else: raise ValueError("Unexpected output: {!r}".format(output)) |