
    =	f                        d dl mZ dZdZdZdZd dlZd dlZd dlZd dl	 d dl
mZmZmZmZ d'd	Zed
ddfdez  d
ddfej                   ej"                  ej$                  ej&                  ej(                  ej*                  ej,                  ej.                  ej0                  gZ	 ej7                  e        ej8                  eeeeeeefee e!fdd	      Z"	 e"jG                  dg dd      \  Z$Z%Z&Z'Z(Z) ej^                  d      reja                  d       dZ1dZ2e$D ]  \  Z3Z4e3dv r e        e3dk(  r	 ed        e3dk(  r	 ed       .e3dk(  r e5ed        ej\                  d        Pe3d v re4jm                         jo                         Z1se3d!k(  rdZ1{e3d"k(  sdZ2 eja                  e1      s e        e2s ejp                  ee       e"js                  ed       ejt                  jw                  d#e<jz                  z        Z>ej                  ej                  d$e>z               ejt                  j                  e>      r	  ej                  e>       ej                  e>       ej                  ej                          ej                  e'      ZH ej                  eHe'e(e2       e"j                          ej                  d&       y# ejT                  $ r?Z+ejY                  e+jZ                          e         ej\                  d       Y dZ+[+$dZ+[+ww xY w# eC$ r Y w xY w# eJ$ r ejY                  d%       Y w xY w)(    )print_functionz1.1z0AutoConfig Utility to check queues configurationzhp-daignose-queuesz_Auto config utility for HPLIP supported multifunction Devices to diagnose queues configuration.N)*)utilsmodulequeuespasswordc                     | dk(  rt        j                  t        t               t        j                  t
        | t        t        t               t        j                  d       y )Ntextr   )	r   	log_title	__title____version__format_textUSAGE__mod__sysexit)typs    #/usr/share/hplip/diagnose_queues.pyusager   &   s8    
f}	;/	eS)WkBHHQK     nameTzUsage: %s [MODE] [OPTIONS]summary)run_as_root_okquietzhl:gsiu)helpz	help-restzhelp-manz	help-desczlogging=guiinteractiveF)handle_device_printer   HPLIP_DEBUGdebuginfo)z-hz--helpz--help-restrestz
--help-manmanz--help-desc )end)z-lz	--loggingz-gz-sz%s/hplip_queues.logzSaving output in log file: %sz	User exitzDone.)r
   )L
__future__r   r   r   r   __doc__r   osgetoptbase.gbaser   r   r   r   r   
USAGE_MODEUSAGE_GUI_MODEUSAGE_INTERACTIVE_MODEUSAGE_SPACEUSAGE_OPTIONSUSAGE_LOGGING1USAGE_LOGGING2USAGE_LOGGING3
USAGE_HELPr   log
set_moduleModuleINTERACTIVE_MODEGUI_MODEUI_TOOLKIT_QT3UI_TOOLKIT_QT4UI_TOOLKIT_QT5modparseStdOptsopts
device_uriprinter_namemode
ui_toolkitlocGetoptErroreerrormsgr   getenv	set_level	log_level
quiet_modeoaprintlowerstripr   lockInstancepathnormpathpropuser_dirlog_filer"   boldexistsremoveOSErrorset_logfile	set_whereLOG_TO_CONSOLE_AND_FILEPasswordpasswordObjmain_functionKeyboardInterruptunlockInstance r   r   <module>rg      s<  , &>	

o  	   0 0 2vt	$
&
0"i	F







&
&


						u33U5I5I					
BNN7
&--K%%x0#^^D#'d4C	@C@P@PQZc,1 AQ A3=j,j# ryygIJ 1  G-&M,%L-'s#CHHQK%%	)I$YI$YJ+. ==#	;/Wd#ww 5dmm CDHIIchh6ABC	ww~~h	BIIh OOHMM#--.#(##D)KFd:zC     		' s  		!%%X  		  IIksi   #1L) K 2B)L) B)L) L AL) L4LL) LL) L&#L) %L&&L) )MM