diff --git a/man/man1/irpf90.1.gz b/man/man1/irpf90.1.gz index 439dceb..b3965df 100644 Binary files a/man/man1/irpf90.1.gz and b/man/man1/irpf90.1.gz differ diff --git a/src/command_line.py b/src/command_line.py index 4d21e87..0d018b0 100644 --- a/src/command_line.py +++ b/src/command_line.py @@ -272,7 +272,7 @@ def print_options(): import subprocess for k in keys: description = options[k][1] - p1 = subprocess.Popen(["fold", "-s", "-w", "40"],stdout=subprocess.PIPE,stdin=subprocess.PIPE) + p1 = subprocess.Popen(["fold", "-s", "-w", "40"],stdout=subprocess.PIPE,stdin=subprocess.PIPE, encoding='utf8') description = p1.communicate(description)[0] description = description.replace('\n','\n'.ljust(27)) print(("-%s, --%s"%(k,options[k][0])).ljust(25), description+'\n') diff --git a/src/preprocessed_text.py b/src/preprocessed_text.py index 81a15f9..a4cae1b 100644 --- a/src/preprocessed_text.py +++ b/src/preprocessed_text.py @@ -311,7 +311,7 @@ def execute_templates(text): script += "for d in v:\n t0 = str(template)\n" for v in variables: script += " t0 = t0.replace('%s',d['%s'])\n"%(v,v) - script += " print t0\n" + script += " print(t0)\n" # Write script file scriptname = "%s%s_template_%d"%(irpdir,line.filename,line.i) file = open(scriptname,'w')