summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/utils.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-03-19 11:20:05 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-24 10:27:21 +0100
commita45505143f89718073b7d06c99d09c05cd0e4108 (patch)
treeb5be3d9c6f8a29ec08af5147702c0f99eb549ebc /pylint/pyreverse/utils.py
parent63bf9dcf39a7dbd86601ef6c6a16eef4768f1e9a (diff)
downloadpylint-git-a45505143f89718073b7d06c99d09c05cd0e4108.tar.gz
pyupgrade: automated removal of python2 constructs
using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ```
Diffstat (limited to 'pylint/pyreverse/utils.py')
-rw-r--r--pylint/pyreverse/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/pyreverse/utils.py b/pylint/pyreverse/utils.py
index 471a61ab7..e0c8f3da9 100644
--- a/pylint/pyreverse/utils.py
+++ b/pylint/pyreverse/utils.py
@@ -32,7 +32,7 @@ def get_default_options():
rcfile = os.path.join(home, RCFILE)
try:
options = open(rcfile).read().split()
- except IOError:
+ except OSError:
pass # ignore if no config file found
return options