Changeset 9704

Show
Ignore:
Timestamp:
05/28/08 18:15:39 (6 months ago)
Author:
vardo
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/sleepy.py

    r8972 r9704  
    3636SUPPORTED = True 
    3737try: 
    38                 if os.name == 'nt': 
    39                         import ctypes 
     38        if os.name == 'nt': 
     39                import ctypes 
    4040 
    41                         GetTickCount = ctypes.windll.kernel32.GetTickCount 
    42                         GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo 
     41                GetTickCount = ctypes.windll.kernel32.GetTickCount 
     42                GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo 
    4343 
    44                         class LASTINPUTINFO(ctypes.Structure): 
    45                                 _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] 
     44                class LASTINPUTINFO(ctypes.Structure): 
     45                        _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] 
    4646 
    47                         lastInputInfo = LASTINPUTINFO() 
    48                         lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) 
     47                lastInputInfo = LASTINPUTINFO() 
     48                lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) 
    4949 
    50                 elif sys.platform == 'darwin': 
    51                         import osx.idle as idle 
    52                 else: # unix 
    53                         import idle 
     50        elif sys.platform == 'darwin': 
     51                import osx.idle as idle 
     52        else: # unix 
     53                import idle 
    5454except: 
    5555        gajim.log.debug('Unable to load idle module')