Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Widgets.py
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-06-21 23:32:34 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-06-22 15:38:38 (GMT)
commit451521b29f302fe52e370a67c59f4d26b829d6fa (patch)
tree7ada2fbb2cbdc823cefbf7997631a2651bfc4719 /Widgets.py
parent561147714f7864ddc8b6b98d617df4aed53c604b (diff)
Ahora indica la línea en la cual hay un error de sintáxis. - PyFlakes
Diffstat (limited to 'Widgets.py')
-rw-r--r--Widgets.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Widgets.py b/Widgets.py
index 7a38f95..c5c44a8 100644
--- a/Widgets.py
+++ b/Widgets.py
@@ -1777,8 +1777,8 @@ class ErroresPyFlakes(Gtk.TreeView):
errores = pyflakes.check(texto, "")
- if errores == 1:
- self.modelo.insert(-1, ["Desconocida", "Error de sintáxis."])
+ if len(str(errores)) == 1:
+ self.modelo.insert(-1, [str(errores), "Error de sintáxis."])
else:
for error in errores:
linea = str(error).split(":")[1]
@@ -1791,8 +1791,7 @@ class ErroresPyFlakes(Gtk.TreeView):
iter_sel = modelo.get_iter(path)
linea = modelo.get_value(iter_sel, 0)
- if linea != "Desconocida":
- self.view._marcar_error(linea)
+ self.view._marcar_error(linea)
return True