[gnoduino] fix reading of old gnoduino boards



commit 6ff4f8a28c9338ba7e02143a7ae210ab0789ca08
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Apr 8 18:51:38 2012 +0200

    fix reading of old gnoduino boards

 src/board.py |    1 -
 src/misc.py  |    5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/board.py b/src/board.py
index 4469ba7..61724e3 100644
--- a/src/board.py
+++ b/src/board.py
@@ -18,7 +18,6 @@
 
 import os
 import sys
-import ConfigParser
 import config
 import prefs
 import misc
diff --git a/src/misc.py b/src/misc.py
index c6060d7..9bf406f 100644
--- a/src/misc.py
+++ b/src/misc.py
@@ -16,6 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 import os
+import ConfigParser
 import glib
 from xdg import Mime
 import gtk
@@ -140,10 +141,10 @@ def readArduinoConfFile(confFile):
 		return conf
 	except: return None
 
-def readGnoduinoConfFile(self, confFile):
+def readGnoduinoConfFile(confFile):
 	conf = []
 	cnf = ConfigParser.RawConfigParser()
-	path = misc.getArduinoFile(confFile)
+	path = getArduinoFile(confFile)
 	if path is None: raise SystemExit(_("Cannot load %s file. Exiting.") % confFile)
 	cnf.read(path)
 	if not len(cnf.sections()):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]