def win_standby():
 try:
  subprocess.Popen('rundll32 powrprof.dll,SetSuspendState Standby')
  time.sleep(10)
 except:
  logging.error(T('Failed to standby system'))
  logging.info('Traceback: ', exc_info=True)

def win_standby ( ) : try : subprocess . Popen ( 'rundll32 powrprof.dll,SetSuspendState Standby' ) time . sleep ( 10 ) except : logging . error ( T ( 'Failed to standby system' ) ) logging . info ( 'Traceback: ' , exc_info = True )
standby windows system .