[gedit-plugins] Fixed case where run is called without ret argument
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Fixed case where run is called without ret argument
- Date: Sun, 14 Mar 2010 23:46:47 +0000 (UTC)
commit 775f8738f6c405b061b579e65cdb7827124e7a7c
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Mon Mar 15 00:40:51 2010 +0100
Fixed case where run is called without ret argument
plugins/commander/commander/commands/__init__.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/commander/commander/commands/__init__.py b/plugins/commander/commander/commands/__init__.py
index d7fac9d..cb7ee04 100644
--- a/plugins/commander/commander/commands/__init__.py
+++ b/plugins/commander/commander/commands/__init__.py
@@ -80,7 +80,7 @@ class Commands(Singleton):
ct.retval = ct.generator.send(ret)
else:
ct.retval = ct.generator.next()
-
+
return ct.retval
def push(self, gen):
@@ -203,7 +203,7 @@ class Commands(Singleton):
if not retval or (isinstance(retval, result.Result) and (retval == result.DONE or retval == result.HIDE)):
state.pop()
-
+
if state:
return self._run_generator(state)
@@ -224,9 +224,9 @@ class Commands(Singleton):
# Re raise it for the top most to show the error
raise e
- return None
+ return None
- def run(self, state, ret):
+ def run(self, state, ret=None):
if type(ret) == types.GeneratorType:
# Ok, this is cool stuff, generators can ask and susped execution
# of commands, for instance to prompt for some more information
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]