Skip to content

Commit 1cf5e4d

Browse files
committed
Apply flake8 fixes
1 parent db76c91 commit 1cf5e4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22

3-
import io
43
import os
54
import re
65
import sys
@@ -42,7 +41,7 @@ def read(fname, fail_silently=False):
4241
filepath = os.path.join(os.path.dirname(__file__), fname)
4342
with open(filepath, encoding="utf8") as f:
4443
return f.read()
45-
except:
44+
except Exception:
4645
if not fail_silently:
4746
raise
4847
return ""
@@ -66,7 +65,7 @@ def extra_requirements(cls, glob_pattern):
6665
pattern = os.path.join(os.path.dirname(__file__), glob_pattern)
6766
requirements = {}
6867
for path in glob.glob(pattern):
69-
name = path[len(before) : -len(after)]
68+
name = path[len(before): -len(after)]
7069
requirements[name] = cls.requirements(path)
7170
return requirements
7271

0 commit comments

Comments
 (0)