We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c5de2 commit 091f83bCopy full SHA for 091f83b
setup.py
@@ -1,13 +1,15 @@
1
# -*- coding: utf-8 -*-
2
#
3
-from setuptools import setup, find_packages
4
-import os
5
import codecs
+import os
+
6
+from setuptools import setup, find_packages
7
8
# https://packaging.python.org/single_source_version/
9
base_dir = os.path.abspath(os.path.dirname(__file__))
10
about = {}
11
with open(os.path.join(base_dir, 'matplotlib2tikz', '__about__.py'), 'rb') as f:
12
+ # pylint: disable=exec-used
13
exec(f.read(), about)
14
15
@@ -17,7 +19,7 @@ def read(fname):
17
19
os.path.join(os.path.dirname(__file__), fname),
18
20
encoding='utf-8'
21
).read()
- except Exception:
22
+ except IOError:
23
content = ''
24
return content
25
0 commit comments