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:17 (GMT)
committer Santiago Collazo <scollazo@activitycentral.com>2013-03-28 07:40:17 (GMT)
commit55bccff7f595ac415c71ad0b3b96ca1d017dfa5a (patch)
treea246db63aea15ec2a03865013e0a7906110935d5
parent1321ed710e42b3ee7676561e2c612a753122e102 (diff)
parenta0ba3b534007a29f982a8f2b625952b388f55d09 (diff)
Merge remote-tracking branch 'ajay/0.97.7-as-base' into devel
-rw-r--r--src/sugar3/activity/activity.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py
index 5541b4f..556a1df 100644
--- a/src/sugar3/activity/activity.py
+++ b/src/sugar3/activity/activity.py
@@ -793,17 +793,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"""