From 5d7a3d7f5d6a9c913d2e7423b048659286353ebc Mon Sep 17 00:00:00 2001 From: Ajay Garg Date: Thu, 28 Mar 2013 06:53:31 +0000 Subject: Fixing indentation error. --- 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""" -- cgit v0.9.1