Blob Blame History Raw
From 3bb5d7ca10dd441cec9f1b0a7f558c041962800c Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha@fedoraproject.org>
Date: Wed, 6 Feb 2013 16:43:25 +0800
Subject: [PATCH] Use the system pycanberra

As pycanberra has not yet been ported to Python 3, keep the fallback on
the bundled version.
---
 gnomeclocks/utils.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnomeclocks/utils.py b/gnomeclocks/utils.py
index 637983d..159fe67 100644
--- a/gnomeclocks/utils.py
+++ b/gnomeclocks/utils.py
@@ -20,7 +20,13 @@ import os
 import time
 import datetime
 from gi.repository import GObject, Gio, GnomeDesktop, Notify
-from . import pycanberra
+
+try:
+    import pycanberra
+except ImportError:
+    # Fallback on the bundled version
+    from . import pycanberra
+
 from gnomeclocks import GNOMECLOCKS_DATADIR
 
 
-- 
1.8.1.2