| 1 |
From 63b803acba957ea81946a86cd3f03dd34ed1779f Mon Sep 17 00:00:00 2001
|
| 2 |
From: =?UTF-8?q?Germ=C3=A1n=20Poo-Caama=C3=B1o?= <gpoo@gnome.org>
|
| 3 |
Date: Thu, 4 Oct 2012 00:32:31 -0700
|
| 4 |
Subject: [PATCH] Fixed exception after quit
|
| 5 |
MIME-Version: 1.0
|
| 6 |
Content-Type: text/plain; charset=UTF-8
|
| 7 |
Content-Transfer-Encoding: 8bit
|
| 8 |
|
| 9 |
This bug was silly. It caused an exception when python was
|
| 10 |
cleaning up twisted before closing. It seems there was a callback
|
| 11 |
in the stack that was trying to be applied to an object already
|
| 12 |
released. This happened only when there were callbacks on
|
| 13 |
callbacks in twisted.
|
| 14 |
|
| 15 |
It seems that modules imported insude functions or methods
|
| 16 |
are cleaned up differently than when they are imported at the
|
| 17 |
beginning of a module. Or maybe is a bug in either twisted or
|
| 18 |
bsddb3 that mess the garbage collector up.
|
| 19 |
|
| 20 |
https://bugzilla.gnome.org/show_bug.cgi?id=535572
|
| 21 |
|
| 22 |
Signed-off-by: Germán Poo-Caamaño <gpoo@gnome.org>
|
| 23 |
---
|
| 24 |
src/util.py | 3 +--
|
| 25 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
| 26 |
|
| 27 |
diff --git a/src/util.py b/src/util.py
|
| 28 |
index 5ad3410..68ab8b8 100644
|
| 29 |
--- a/src/util.py
|
| 30 |
+++ b/src/util.py
|
| 31 |
@@ -16,7 +16,7 @@
|
| 32 |
# St, Fifth Floor, Boston, MA 02110-1301 USA
|
| 33 |
|
| 34 |
import gtk, os
|
| 35 |
-
|
| 36 |
+import bsddb3
|
| 37 |
|
| 38 |
def greek(size):
|
| 39 |
"""Take a quantity (like 1873627) and display it in a human-readable rounded
|
| 40 |
@@ -71,7 +71,6 @@ def get_buddyicon(flickr, data, size=48):
|
| 41 |
"""Lookup the buddyicon from the data in @data using @flickr and resize it
|
| 42 |
to @size pixels."""
|
| 43 |
from twisted.web.client import getPage
|
| 44 |
- import bsddb3
|
| 45 |
|
| 46 |
global __buddy_cache
|
| 47 |
if __buddy_cache is None:
|
| 48 |
--
|
| 49 |
1.7.12
|
| 50 |
|