From 45fe8662400c65ce3f3c2d296d3db29984621efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Bili=C5=84ski?= <mateusz.bilinski@gmail.com> Date: Wed, 28 May 2008 16:15:39 +0000 Subject: [PATCH] Reduced too big indentation inside first try-catch (was 2 tabs, now it's 1 tab). --- src/common/sleepy.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/common/sleepy.py b/src/common/sleepy.py index bcc5f73c34..f56a7e0444 100644 --- a/src/common/sleepy.py +++ b/src/common/sleepy.py @@ -35,22 +35,22 @@ STATE_AWAKE = 'awake' SUPPORTED = True try: - if os.name == 'nt': - import ctypes + if os.name == 'nt': + import ctypes - GetTickCount = ctypes.windll.kernel32.GetTickCount - GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo + GetTickCount = ctypes.windll.kernel32.GetTickCount + GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo - class LASTINPUTINFO(ctypes.Structure): - _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] + class LASTINPUTINFO(ctypes.Structure): + _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] - lastInputInfo = LASTINPUTINFO() - lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) + lastInputInfo = LASTINPUTINFO() + lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) - elif sys.platform == 'darwin': - import osx.idle as idle - else: # unix - import idle + elif sys.platform == 'darwin': + import osx.idle as idle + else: # unix + import idle except: gajim.log.debug('Unable to load idle module') SUPPORTED = False -- GitLab