diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-26 17:27:46 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-26 17:49:39 +0100 |
commit | 7576dc2719a65c72319d6e453372632e2729e907 (patch) | |
tree | 71383d071c3b6b7d5f1734dc991338aab59edadd /scripts | |
parent | a5063283dee2da81c44e440d308e078242412f49 (diff) | |
download | qutebrowser-7576dc2719a65c72319d6e453372632e2729e907.tar.gz qutebrowser-7576dc2719a65c72319d6e453372632e2729e907.zip |
Get rid of IOError
It's an alias to OSError since Python 3.3:
https://docs.python.org/3/library/exceptions.html
https://www.python.org/dev/peps/pep-3151/
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dev/misc_checks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index ae766c878..1d6c3155e 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -222,6 +222,10 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]: re.compile(r'http://www\.gnu\.org/licenses/'), "use https:// URL.", ), + ( + re.compile(r'IOError'), + "use OSError", + ), ] # Files which should be ignored, e.g. because they come from another |