Skip to content

Commit e88d128

Browse files
[REGRESSION] Fixups for quality related to Version bump for next release changes (- WIP #62 -)
1 parent c633ddc commit e88d128

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ def readFile(filename):
7171
"""
7272
theResult = None
7373
try:
74-
with open(str("""./{}""").format(str(filename))) as f:
75-
theResult = f.read()
74+
if str("""E.md""") not in filename:
75+
raise NotImplementedError("""[CWE-440] Not Implemented.""")
76+
else:
77+
with open(str("""./{}""").format(str(filename))) as f:
78+
theResult = f.read()
7679
except Exception:
7780
theResult = str(
7881
"""See https://github.com/reactive-firewall/python-repo/{}"""
@@ -81,8 +84,8 @@ def readFile(filename):
8184

8285

8386
try:
84-
with open("""./requirements.txt""") as f:
85-
requirements = f.read().splitlines()
87+
with open("""./requirements.txt""") as rfile:
88+
requirements = rfile.read().splitlines()
8689
except Exception:
8790
requirements = None
8891

0 commit comments

Comments
 (0)