[gedit] Fix python console plugin



commit d787c89e04c61db78fd94a1ec1e4e845b490d883
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Feb 6 14:17:16 2011 -0800

    Fix python console plugin

 plugins/pythonconsole/pythonconsole/console.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole/console.py b/plugins/pythonconsole/pythonconsole/console.py
index d3b96f3..c40cf37 100644
--- a/plugins/pythonconsole/pythonconsole/console.py
+++ b/plugins/pythonconsole/pythonconsole/console.py
@@ -384,7 +384,7 @@ class PythonConsole(Gtk.ScrolledWindow):
                 if r is not None:
                     print(r)
             except SyntaxError:
-                exec(command in self.namespace)
+                exec(command, self.namespace)
         except:
             if hasattr(sys, 'last_type') and sys.last_type == SystemExit:
                 self.destroy()



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