Skip to content

Commit

Permalink
Merge pull request #37 from hczhcz/patch-1
Browse files Browse the repository at this point in the history
Allow non-utf8 sub_files
  • Loading branch information
pehrsoderman authored Oct 17, 2023
2 parents be7fee7 + 9d51b31 commit 624fe94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def submit(submit_url, cookies, problem, language, files, mainclass='', tag=''):

sub_files = []
for f in files:
with open(f) as sub_file:
with open(f, 'rb') as sub_file:
sub_files.append(('sub_file[]',
(os.path.basename(f),
sub_file.read(),
Expand Down

0 comments on commit 624fe94

Please sign in to comment.