Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-09-30 22:24:37 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-09-30 22:24:37 (GMT)
commit3f08644b32be7cec9bb3929357df201fdbbd9d9e (patch)
tree582467c657e61c471d6621e2defcddc8eb5fd99c /src
parent897428c794ba00a150127bec522128c507ee946c (diff)
Remove workaround for old dbus-python.
Diffstat (limited to 'src')
-rw-r--r--src/sugar/activity/activityfactory.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py
index af6674e..b9b2a44 100644
--- a/src/sugar/activity/activityfactory.py
+++ b/src/sugar/activity/activityfactory.py
@@ -31,13 +31,6 @@ from errno import EEXIST, ENOSPC
import os
-# #3903 - this constant can be removed and assumed to be 1 when dbus-python
-# 0.82.3 is the only version used
-if dbus.version >= (0, 82, 3):
- DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND = 1
-else:
- DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND = 1000
-
_SHELL_SERVICE = "org.laptop.Shell"
_SHELL_PATH = "/org/laptop/Shell"
_SHELL_IFACE = "org.laptop.Shell"
@@ -279,7 +272,7 @@ class ActivityCreationHandler(gobject.GObject):
command,
environ['SUGAR_BUNDLE_PATH'],
environ['SUGAR_BUNDLE_ID'],
- timeout=30 * DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND,
+ timeout=30,
reply_handler=self._create_reply_handler,
error_handler=self._create_error_handler,
dbus_interface=_RAINBOW_ACTIVITY_FACTORY_INTERFACE)