Reduced too big indentation inside first try-catch (was 2 tabs, now it's 1 tab).

This commit is contained in:
Mateusz Biliński 2008-05-28 16:15:39 +00:00
parent a5e218efba
commit 45fe866240
1 changed files with 12 additions and 12 deletions

View File

@ -35,22 +35,22 @@ STATE_AWAKE = 'awake'
SUPPORTED = True SUPPORTED = True
try: try:
if os.name == 'nt': if os.name == 'nt':
import ctypes import ctypes
GetTickCount = ctypes.windll.kernel32.GetTickCount GetTickCount = ctypes.windll.kernel32.GetTickCount
GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo
class LASTINPUTINFO(ctypes.Structure): class LASTINPUTINFO(ctypes.Structure):
_fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)]
lastInputInfo = LASTINPUTINFO() lastInputInfo = LASTINPUTINFO()
lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo)
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
import osx.idle as idle import osx.idle as idle
else: # unix else: # unix
import idle import idle
except: except:
gajim.log.debug('Unable to load idle module') gajim.log.debug('Unable to load idle module')
SUPPORTED = False SUPPORTED = False