Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Collazo <scollazo@activitycentral.com>2013-03-28 07:40:24 (GMT)
committer Santiago Collazo <scollazo@activitycentral.com>2013-03-28 07:40:24 (GMT)
commitc88573fe4771906bb8df961594b480bd86a9fec3 (patch)
treeb1916a4df9d3dcc6dd8aca8614a7d19c8b5405b4
parent212766920ab8b36a770fc6678f7332c6677dc980 (diff)
parent5d7a3d7f5d6a9c913d2e7423b048659286353ebc (diff)
Merge branch 'master' of git://git.sugarlabs.org/~ajaygarg/sugar-toolkit/dx4-sugar-toolkit into devel
-rw-r--r--src/sugar/activity/activity.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
index 53c2aa3..6ff0858 100644
--- a/src/sugar/activity/activity.py
+++ b/src/sugar/activity/activity.py
@@ -756,17 +756,17 @@ class Activity(Window, gtk.Container):
else:
self._jobject.metadata['share-scope'] = SCOPE_NEIGHBORHOOD
- def _inhibit_suspend(self):
- if not os.path.exists(POWERD_INHIBIT_DIR):
- return
+ def _inhibit_suspend(self):
+ if not os.path.exists(POWERD_INHIBIT_DIR):
+ return
- path = os.path.join(POWERD_INHIBIT_DIR, str(os.getpid()))
- try:
- fd = open(path, 'w')
- except IOError:
- logging.error("Inhibit Suspend: Could not create file %s", path)
- else:
- fd.close()
+ path = os.path.join(POWERD_INHIBIT_DIR, str(os.getpid()))
+ try:
+ fd = open(path, 'w')
+ except IOError:
+ logging.error("Inhibit Suspend: Could not create file %s", path)
+ else:
+ fd.close()
def __joined_cb(self, activity, success, err):
"""Callback when join has finished"""