From 0a15125b07dd6c6f5ab69dcb68a82f721240b2db Mon Sep 17 00:00:00 2001 From: Alexandre Dupas Date: Sat, 12 Jun 2010 10:36:06 +0200 Subject: [PATCH] Remove open options as it is the default value. --- songbook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/songbook.py b/songbook.py index 3f1f7a2e..4a394c2f 100755 --- a/songbook.py +++ b/songbook.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # import getopt, sys @@ -52,7 +53,7 @@ def makeTexFile(songbook, output): for song in songs: out.write(' \\input{{songs/{songfile}}}\n'.format(songfile=song.strip())) out.write('}\n') - tmpl = open("templates/"+template, 'r') + tmpl = open("templates/"+template) out.write(tmpl.read().replace("SONGBOOKNAME", name+"_index")) tmpl.close() out.close()