Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2013-03-28 06:53:31 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2013-03-28 06:53:31 (GMT)
commit5d7a3d7f5d6a9c913d2e7423b048659286353ebc (patch)
treee95870c94679929163d8e431e67b40e432d8aea4
parent50ddf71f4070e004214bdef185521f76789ae624 (diff)
Fixing indentation error.HEADmaster
-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"""