Skip to content

Commit

Permalink
moved read_json_file to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-fenton committed Nov 20, 2024
1 parent 8dcab79 commit 7282622
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions i18nilize/src/internationalize/diffing_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def __initialize_changed_template(self, type):
"""
Helper functions
"""

def compute_hash(file_content):
hash = hashlib.sha256()
hash.update(file_content)
Expand All @@ -179,10 +180,6 @@ def compute_hashes(directory):

return hash_dict

"""
Reads a file given the directory and returns json object
Expects file to be in json format
"""
def read_json_file(directory):
try:
with open(directory, "r") as file:
Expand Down

0 comments on commit 7282622

Please sign in to comment.