[gedit] Fix undefined variable error
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix undefined variable error
- Date: Sat, 20 Oct 2012 10:31:25 +0000 (UTC)
commit c7d29da69debe249d31001465557da49e2e5305e
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Oct 20 12:28:15 2012 +0200
Fix undefined variable error
Not sure how this worked until now... probably previous version of python were more
accomodating.
plugins/externaltools/tools/capture.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/externaltools/tools/capture.py b/plugins/externaltools/tools/capture.py
index 1a31f27..64b50a2 100644
--- a/plugins/externaltools/tools/capture.py
+++ b/plugins/externaltools/tools/capture.py
@@ -151,7 +151,7 @@ class Capture(GObject.Object):
return False
- def process_read_buffer(self):
+ def process_read_buffer(self, source):
if self.read_buffer:
if source == self.pipe.stdout:
self.emit('stdout-line', self.read_buffer)
@@ -188,13 +188,13 @@ class Capture(GObject.Object):
self.emit('stderr-line', line)
else:
source.close()
- self.process_read_buffer()
+ self.process_read_buffer(source)
self.pipe = None
return False
if condition & ~(GObject.IO_IN | GObject.IO_PRI):
- self.process_read_buffer()
+ self.process_read_buffer(source)
self.pipe = None
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]