Преглед изворни кода

changed file to ofile, added close

Sam Flint пре 12 година
родитељ
комит
4bd139a613
1 измењених фајлова са 3 додато и 2 уклоњено
  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