Skip to content

Commit

Permalink
FileHandler method name change - check_writable_file to is_writable_file
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmcdonnell committed Feb 11, 2019
1 parent 8a512bd commit 5a3342c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addie/step2_handler/generate_sumthing.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def is_sum_inp_file_not_empty(self):

def check_for_write_permissions(self, full_output_file_name):
_o_file = FileHandler(filename=full_output_file_name)
if _o_file.check_file_writable():
if _o_file.is_file_writable():
outfile = open(full_output_file_name, "w")
else:
title = "No write permissions!"
Expand Down
2 changes: 1 addition & 1 deletion addie/utilities/file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_config_parser(self, section_name='Configuration', dictionary=None):
config.write(cfgfile)
cfgfile.close()

def check_file_writable(self):
def is_file_writable(self):
if os.path.exists(self.filename):
if os.path.isfile(self.filename):
return os.access(self.filename, os.W_OK)
Expand Down

0 comments on commit 5a3342c

Please sign in to comment.