
    	h                     h    S SK r S SKrS SKrS SKrS r\S:X  a  \" S5        \" S5        \" S5        gg)    Nc                 X   [         R                  " S[         R                  " [         R                   " 5       5      5      nSnSnU(       ap  US:X  a  SnOSU-  n [        R                  R                  [        R                  " 5       U U SU  3S-   5      n[        R                  " U5        US-  nU(       a  Mp   [        R                  " S U 5      n [        R                  " U5      S:X  a&  [        S	U -  5         [        R                  " U5        g [        R                   " UW5        [        S
U  SU 35        [        R                  " U5        g ! [         a    Sn Nf = f! [        R                   a  n[        SU5         S nAg S nAff = f! [        R                  " U5        f = f)Nz%Y%m%d   r    z-%d-z.evtzCould not open the event logz*No records in event log %s - not backed upz
Backed up z log to )timestrftime	localtimeospathjoinwin32apiGetTempPathstatOSErrorwin32evtlogOpenEventLogerrorprintGetNumberOfEventLogRecordsCloseEventLogClearEventLog)logType
datePrefix
fileExistsretryindexfnamehlogdetailss           oC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\win32/scripts/backupEventLog.pyBackupClearLogr!   	   sm   x		)DEJJE
A:EEME	GGLL$$&,ugQwi069E GGEN 	
 *''g6(11$71<>HI 	!!$' 	!!$.
7)8E734!!$'!  	J	  ,g6 	!!$'s=   AE ;E$ (F (F E! E!$F8F		FF)__main__ApplicationSystemSecurity)r
   r   r   r   r!   __name__     r    <module>r)      s>    	   (D z=!8: r(   