Add short docstring to create_file()

pull/754/head
Åke Forslund 2017-04-27 18:01:43 +02:00 committed by Augusto Monteiro 'Sparky
parent 11391557f5
commit b9c4e84bb1
1 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,11 @@ def read_dict(filename, div='='):
def create_file(filename):
""" Create the file filename and create any directories needed
Args:
filename: Path to the file to be created
"""
try:
os.makedirs(dirname(filename))
except OSError: