관리-도구
편집 파일: fix_imports2.cpython-37.opt-1.pyc
B �A�[�! � @ s� d Z ddlmZ ddlmZmZmZmZmZ ddl m Z dZdddd d ddd ded ded ed ddd�Zddddddddd�Z dZdZd Zd!Zd"Zd#Zd$Zd%Zd&Zd'Zd(d)� Zd*d+� ZG d,d-� d-ej�Zd.S )/z Fixer for complicated imports � )� fixer_base)�Name�String� FromImport�Newline�Comma)�touch_import_top)TZACTIVEZALLZANCHORZARCZBASELINEZBEVELZBOTHZBOTTOMZBROWSEZBUTTZCASCADEZCENTERZCHARZCHECKBUTTONZCHORDZCOMMANDZCURRENTZDISABLEDZDOTBOX�EZENDZEWZ EXCEPTIONZEXTENDEDZFALSEZFIRSTZFLATZGROOVEZHIDDENZ HORIZONTALZINSERTZINSIDEZLASTZLEFTZMITERZMOVETOZMULTIPLE�NZNEZNOZNONEZNORMALZNSZNSEWZNUMERICZNWZOFFZONZOUTSIDEZPAGESZPIESLICEZ PROJECTINGZRADIOBUTTONZRAISEDZREADABLEZRIDGEZRIGHTZROUND�SZSCROLLZSEZSELZ SEL_FIRSTZSEL_LASTZ SEPARATORZSINGLEZSOLIDZSUNKENZSWZStringTypesZTOPZTRUEZ TclVersionZ TkVersionZ UNDERLINEZUNITSZVERTICAL�WZWORDZWRITABLE�X�YZYESZwantobjects)"ZAbstractBasicAuthHandlerZAbstractDigestAuthHandlerZAbstractHTTPHandlerZBaseHandlerZCacheFTPHandlerZ FTPHandlerZFileHandlerZHTTPBasicAuthHandlerZHTTPCookieProcessorZHTTPDefaultErrorHandlerZHTTPDigestAuthHandlerZ HTTPErrorZHTTPErrorProcessorZHTTPHandlerZHTTPPasswordMgrZHTTPPasswordMgrWithDefaultRealmZHTTPRedirectHandlerZHTTPSHandlerZOpenerDirectorZProxyBasicAuthHandlerZProxyDigestAuthHandlerZProxyHandlerZRequest�StringIOZURLErrorZUnknownHandlerZ addinfourlZbuild_openerZinstall_openerZparse_http_listZparse_keqv_listZrandombytesZrequest_host�urlopen)ZContentTooShortErrorZFancyURLopenerZ URLopenerZbasejoinZ ftperrorsZ getproxiesZgetproxies_environmentZ localhostZpathname2urlZquoteZ quote_plusZ splitattrZ splithostZ splitnportZsplitpasswdZ splitportZ splitqueryZsplittagZ splittypeZ splituserZ splitvalueZthishostZunquoteZunquote_plusZunwrapZurl2pathnameZ urlcleanupZ urlencoder Zurlretrieve)Zparse_qsZ parse_qslZ urldefragZurljoin�urlparseZurlsplitZ urlunparseZ urlunsplit)ZndbmZgnuZdumb)�error�open)�whichdb)ZBaseHTTPRequestHandlerZ HTTPServer)ZCGIHTTPRequestHandler)ZSimpleHTTPRequestHandler)� FileDialogZLoadFileDialogZSaveFileDialogZdialogstatesZtest)Z DirectoryZOpenZSaveAsZ_DialogZaskdirectoryZaskopenfileZaskopenfilenameZaskopenfilenamesZaskopenfilesZ asksaveasfileZasksaveasfilename)�SimpleDialog)ZaskfloatZ askintegerZ askstringZDialog)ZCGIXMLRPCRequestHandlerZSimpleXMLRPCDispatcherZSimpleXMLRPCRequestHandler�SimpleXMLRPCServerZlist_public_methodsZremove_duplicatesZresolve_dotted_attribute)ZDocCGIXMLRPCRequestHandlerZDocXMLRPCRequestHandler�DocXMLRPCServerZ ServerHTMLDocZXMLRPCDocGenerator)�urllib2�urllibr Zdbm�anydbmr �BaseHTTPServer� CGIHTTPServer�SimpleHTTPServerr �tkFileDialogr �tkSimpleDialogr r )r r )r r r )r r )r r r )r r )r r )r r )zurllib.requestzurllib.errorzurllib.parsezdbm.__init__zhttp.serverztkinter.filedialogztkinter.simpledialogz xmlrpc.serverz name='%s'z attr='%s'z using='%s'z$dotted_name=dotted_name< %s '.' %s >z?pow=power< %s trailer< '.' %s > trailer< '.' using=any > any* >z-pow=power< %s trailer< '.' using=any > any* >z�from_import=import_from< 'from' %s 'import' (import_as_name< using=any 'as' renamed=any> | in_list=import_as_names< using=any* > | using='*' | using=NAME) >zSname_import=import_name< 'import' (%s | in_list=dotted_as_names< imp_list=any* >) >z8name_import_rename=dotted_as_name< %s 'as' renamed=any >z�from_import_rename=import_from< 'from' %s 'import' (%s | import_as_name< %s 'as' renamed=any > | in_list=import_as_names< any* (%s | import_as_name< %s 'as' renamed=any >) any* >) >c C sN dd� t D �} dd�dd� | D �� }|d7 }|d�dd� | D ��d 7 }|S )zI Builds a pattern for all toplevel names (urllib, http, etc) c S s g | ]}|� d ��qS )�.)�split)�.0�mod� r% �Q/opt/alt/python37/lib/python3.7/site-packages/libpasteurize/fixes/fix_imports2.py� <listcomp>� s z*all_modules_subpattern.<locals>.<listcomp>z( z | c S s( g | ] }t t|d t|d f �qS )r � )�dotted_name�simple_name�simple_attr)r# r$ r% r% r&