Browse Source

changed file to ofile, added close

Sam Flint 10 years ago
parent
commit
4bd139a613
1 changed files with 3 additions and 2 deletions
  1. 3 2
      email2orgsched.org

+ 3 - 2
email2orgsched.org

@@ -93,8 +93,9 @@ We use each library for a purpose:
   data['type'] = determineType(data)
   data['parsedsubject'] = parseSubject(data)
   
-  file = open(agendafile, 'a')
-  output(data, file)
+  ofile = open(agendafile, 'a')
+  output(data, ofile)
+  ofile.close()
 #+END_SRC
 #+CAPTION: use-name-as-caption
 ** Final code