Skip to content

Commit

Permalink
py3.6-3.5-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yysijie committed Jul 6, 2018
1 parent 9cc38aa commit 75df9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchlight/torchlight/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def save_arg(self, arg):
if not os.path.exists(self.work_dir):
os.makedirs(self.work_dir)
with open(self.session_file, 'w') as f:
f.write(f"# command line: {' '.join(sys.argv)}\n\n")
f.write('# command line: {}\n\n'.format(' '.join(sys.argv)))
yaml.dump(arg_dict, f, default_flow_style=False, indent=4)

def print_log(self, str, print_time=True):
Expand Down

0 comments on commit 75df9df

Please sign in to comment.