Skip to content

Commit 091f83b

Browse files
committed
pylint fixes
1 parent a9c5de2 commit 091f83b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# -*- coding: utf-8 -*-
22
#
3-
from setuptools import setup, find_packages
4-
import os
53
import codecs
4+
import os
5+
6+
from setuptools import setup, find_packages
67

78
# https://packaging.python.org/single_source_version/
89
base_dir = os.path.abspath(os.path.dirname(__file__))
910
about = {}
1011
with open(os.path.join(base_dir, 'matplotlib2tikz', '__about__.py'), 'rb') as f:
12+
# pylint: disable=exec-used
1113
exec(f.read(), about)
1214

1315

@@ -17,7 +19,7 @@ def read(fname):
1719
os.path.join(os.path.dirname(__file__), fname),
1820
encoding='utf-8'
1921
).read()
20-
except Exception:
22+
except IOError:
2123
content = ''
2224
return content
2325

0 commit comments

Comments
 (0)