Skip to content

Commit

Permalink
refactor: formatted using black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag2 committed Apr 20, 2022
1 parent 8e20807 commit b3fd3fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions konsave/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ def convert_none_to_empty_list(data):
data[k] = convert_none_to_empty_list(v)
return [] if data is None else data


return convert_none_to_empty_list(konsave_config)



@exception_handler
def list_profiles(profile_list, profile_count):
"""Lists all the created profiles.
Expand Down Expand Up @@ -187,7 +185,7 @@ def save_profile(name, profile_list, force=False):
folder = os.path.join(profile_dir, section)
mkdir(folder)
for entry in konsave_config[section]["entries"]:
source = os.path.join(location, entry)
source = os.path.join(location, entry)
dest = os.path.join(folder, entry)
if os.path.exists(source):
if os.path.isdir(source):
Expand Down

0 comments on commit b3fd3fe

Please sign in to comment.