Skip to content

Commit

Permalink
Fix passing encoding parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
17451k committed Dec 29, 2020
1 parent 7934d6c commit 8a8cea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clade/extensions/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def store_deps_files(self, deps, cwd):
def store_pre_files(self, deps, cwd, encoding=None):
self.__store_src_files(deps, cwd, encoding)

def __store_src_files(self, deps, cwd, encodng=None):
def __store_src_files(self, deps, cwd, encoding=None):
for file in deps:
if not os.path.isabs(file):
file = os.path.join(cwd, file)

self.extensions["Storage"].add_file(file, encoding=None)
self.extensions["Storage"].add_file(file, encoding=encoding)

def load_deps_by_id(self, id):
return self.load_data(os.path.join("deps", "{}.json".format(id)))
Expand Down

0 comments on commit 8a8cea0

Please sign in to comment.