Skip to content

Commit 64eca91

Browse files
diogoosorioDiogo Osório
authored andcommitted
Make the lib/helpers/file_helper_.py adhere to the pep8 convention
1 parent e4ee197 commit 64eca91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/helpers/file_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, output_file):
88

99
def check_directory(self):
1010
directory = os.path.dirname(self.output_file)
11-
11+
1212
try:
1313
os.stat(directory)
1414
except:
@@ -18,7 +18,7 @@ def check_directory(self):
1818
# placeholder for error checking on -oJ implementation
1919
def is_json(json_file):
2020
try:
21-
with open(json_file, "r") as f:
21+
with open(json_file, "r") as f:
2222
json_object = json.load(f)
2323
except ValueError:
2424
return False
@@ -27,7 +27,7 @@ def is_json(json_file):
2727
def write_file(self, contents):
2828
# check if host directory exists, if not create it
2929
self.check_directory()
30-
30+
3131
with open(self.output_file, "w") as o:
3232
o.write(contents)
3333

0 commit comments

Comments
 (0)