From 0816e6cafedfdf722baabe11c69c2f26f0fc9936 Mon Sep 17 00:00:00 2001 From: Guillaume Seguin Date: Mon, 6 Aug 2012 19:19:07 +0200 Subject: [PATCH] Fix bug --- pronterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pronterface.py b/pronterface.py index 6df47ee..5596180 100755 --- a/pronterface.py +++ b/pronterface.py @@ -1566,7 +1566,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): self.filename=name of=open(self.filename) self.f=[i.replace("\n","").replace("\r","") for i in of] - of.close + of.close() self.status.SetStatusText(_("Loaded %s, %d lines") % (name, len(self.f))) wx.CallAfter(self.printbtn.SetLabel, _("Print")) wx.CallAfter(self.pausebtn.SetLabel, _("Pause"))