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KO}ӽmSşذqsOy?\[,d@'73'j%kOe`1.g2"e =YIzS2|zŐƄa\U,dP;jhhhaxǶ?КZ՚.q SE+XrbOu%\GتX(H,N^~]JyEZQKceTQ]VGYqnah;y$cQahT&QPZ*iZ8UQQM.qo/T\7X"u?Mttl2Xq(IoW{R^ ux*SYJ! 4S.Jy~ BROS[V|žKNɛP(L6V^|cR7i7nZW1Fd@ Ara{詑|(T*dN]Ko?s=@ |_EvF]׍kR)eBJc" MUUbY6`~V޴dJKß&~'d3i WWWWWW
Current Directory: /usr/lib/python2.7/site-packages/pip/_vendor
Viewing File: /usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyo
� r2Wcf@sY dZdZdZdZddlZddlmZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdlgfZe jjdm�ZerAe jZeZeZeZeeee e!e"e#e$e%e&e'g Z(nre j)Ze*Z+dn�ZgZ(ddl,Z,xEdoj-�D]7Z.ye(j/e0e,e.��Wne1k r�qxnXqxWe2dp�e+dq�D��Z3dr�Z4dse5fdt��YZ6ej7ej8Z9duZ:e:dvZ;e9e:Z<edw�Z=dxj>dy�ej?D��Z@deAfdz��YZBd eBfd{��YZCd"eBfd|��YZDd$eDfd}��YZEd'eAfd~��YZFde5fd���YZGd#e5fd���YZHe jIjJeH�d��ZKd��ZLd��ZMd��ZNd��ZOd��ZPd��ZQd�d��ZRd%e5fd���YZSd-eSfd���YZTdeTfd���YZUdeTfd���YZVdeTfd���YZWeWZXeWeS_YdeTfd���YZZd eWfd���YZ[deZfd���YZ\d0eTfd���YZ]d(eTfd���YZ^d&eTfd���YZ_d eTfd���YZ`d/eTfd���YZad�eTfd���YZbdebfd���YZcdebfd���YZddebfd���YZed+ebfd���YZfd*ebfd���YZgd2ebfd���YZhd1ebfd���YZid!eSfd���YZjdejfd���YZkdejfd���YZldejfd���YZmd ejfd���YZndeSfd���YZodeofd���YZpdeofd���YZqdeofd���YZrd3erfd���YZsd�e5fd���YZtet�Zudeofd���YZvd)eofd���YZwdeofd���YZxd�exfd���YZyd.eofd���YZzd ezfd���YZ{dezfd���YZ|d ezfd���YZ}d,ezfd���YZ~de5fd���YZd��Z�d�e�d��Z�e�d��Z�d��Z�d��Z�d��Z�d��Z�e�e�d��Z�d��Z�e�d��Z�d��Z�d��Z�eU�j�dD�Z�ed�j�dJ�Z�ee�j�dI�Z�ef�j�db�Z�eg�j�da�Z�e]e=d�d�d��j�d���Z�e^d��j�d���Z�e^d��j�d���Z�e�e�Be�Be]e@d�d�d�dq�Be^d�e j��BZ�e|e�e~d��e��Z�eWd��evd��j�d��e|ere�e�B��j�d��d�Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�e5�e�_�dxd��Z�e6�Z�e5�e�_�e5�e�_�e~d��e~d��d��Z�e�Z�e^d��j�d��Z�e^d��j�d��Z�e^d��j�d��Z�e{eXd��e�j��j�d��Z�d�d�e�e�j�d��Z�e�d��Z�e�d��Z�e�d��Z�e�e]e9e<d��j�d���\Z�Z�e�e�d�j-�d���Z�e^d�d�j>e�j���d��j�d��Z�d��Z�e^d��j�d��Z�e^d��j�d��Z�e^d��j��j�d��Z�e^d��j�d��Z�e^d�j�d�Z�e�Z�e^d�j�d�Z�e{ere]e@d�d��eve]d�eWd��ee����j��j�d�Z�e�eve�j�e�Bddx��j�d;�Z�e�dkrU e[d�Z�e[d �Z�e]e9e<d �Z�e�e�d d e��j�e��Z�e|e�e���j�d �Z�e�e�d d e��j�e��Z�e|e�e���j�d�Z�e�de�Bj�d �e�e�j�d�Z�e�j�d�ndS(sw pyparsing module - Classes and methods to define and execute parsing grammars The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. With pyparsing, you don't need to learn a new syntax for defining grammars or matching expressions - the parsing module provides a library of classes that you use to construct the grammar directly in Python. Here is a program to parse "Hello, World!" (or any greeting of the form C{"<salutation>, <addressee>!"}):: from pyparsing import Word, alphas # define grammar of a greeting greet = Word( alphas ) + "," + Word( alphas ) + "!" hello = "Hello, World!" print (hello, "->", greet.parseString( hello )) The program outputs the following:: Hello, World! -> ['Hello', ',', 'World', '!'] The Python representation of the grammar is quite readable, owing to the self-explanatory class names, and the use of '+', '|' and '^' operators. The parsed results returned from C{parseString()} can be accessed as a nested list, a dictionary, or an object with named attributes. The pyparsing module handles some of the problems that are typically vexing when writing text parsers: - extra or missing whitespace (the above program will also handle "Hello,World!", "Hello , World !", etc.) - quoted strings - embedded comments s2.1.1s21 Mar 2016 05:04 UTCs*Paul McGuire <ptmcg@users.sourceforge.net>i����N(treftAndtCaselessKeywordtCaselessLiteralt CharsNotIntCombinetDicttEachtEmptyt FollowedBytForwardt GoToColumntGrouptKeywordtLineEndt LineStarttLiteralt MatchFirsttNoMatchtNotAnyt OneOrMoretOnlyOncetOptionaltOrtParseBaseExceptiontParseElementEnhancetParseExceptiontParseExpressiontParseFatalExceptiont ParseResultstParseSyntaxExceptiont ParserElementt QuotedStringtRecursiveGrammarExceptiontRegextSkipTot StringEndt StringStarttSuppresstTokentTokenConvertertWhitetWordtWordEndt WordStartt ZeroOrMoret alphanumstalphast alphas8bitt anyCloseTagt anyOpenTagt cStyleCommenttcoltcommaSeparatedListtcommonHTMLEntityt countedArraytcppStyleCommenttdblQuotedStringtdblSlashCommentt delimitedListtdictOftdowncaseTokenstemptythexnumst htmlCommenttjavaStyleCommenttlinetlineEndt lineStarttlinenot makeHTMLTagst makeXMLTagstmatchOnlyAtColtmatchPreviousExprtmatchPreviousLiteralt nestedExprtnullDebugActiontnumstoneOftopAssoctoperatorPrecedencet printablestpunc8bittpythonStyleCommentt quotedStringt removeQuotestreplaceHTMLEntityt replaceWitht restOfLinetsglQuotedStringtsranget stringEndt stringStartttraceParseActiont unicodeStringt upcaseTokenst withAttributet indentedBlocktoriginalTextFortungroupt infixNotationt locatedExprt withClasst3cCs}t|t�r|Syt|�SWnUtk rxt|�jtj�d�}td�}|jd��|j |�SXdS(sDrop-in replacement for str(obj) that tries to be Unicode friendly. It first tries str(obj). If that fails with a UnicodeEncodeError, then it tries unicode(obj). It then < returns the unicode object | encodes it with the default encoding | ... >. txmlcharrefreplaces&#\d+;cSs#dtt|ddd!��dS(Ns\uiii����(thextint(tt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt<lambda>�sN( t isinstancetunicodetstrtUnicodeEncodeErrortencodetsystgetdefaultencodingR"tsetParseActionttransformString(tobjtrett xmlcharref((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt_ustrqs  s6sum len sorted reversed list tuple set any all min maxccs|] }|VqdS(N((t.0ty((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�sicCsRd}d�dj�D�}x/t||�D]\}}|j||�}q,W|S(s/Escape &, <, >, ", ', etc. in a string of data.s&><"'css|]}d|dVqdS(t&t;N((Rzts((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�ssamp gt lt quot apos(tsplittziptreplace(tdatat from_symbolst to_symbolstfrom_tto_((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt _xml_escape�s t _ConstantscBseZRS((t__name__t __module__(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��st 0123456789t ABCDEFabcdefi\tccs$|]}|tjkr|VqdS(N(tstringt whitespace(Rztc((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�scBsPeZdZdd d d�Zd�Zd�Zd�Zdd�Zd�Z RS( s7base exception class for all parsing runtime exceptionsicCsI||_|dkr*||_d|_n||_||_||_dS(NR�(tloctNonetmsgtpstrt parserElement(tselfR�R�R�telem((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__init__�s      cCsm|dkrt|j|j�S|dkr>t|j|j�S|dkr]t|j|j�St|��dS(s�supported attributes by name are: - lineno - returns the line number of the exception text - col - returns the column number of the exception text - line - returns the line containing the exception text RER4tcolumnRBN(scolscolumn(RER�R�R4RBtAttributeError(R�taname((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __getattr__�s   cCs d|j|j|j|jfS(Ns"%s (at char %d), (line:%d, col:%d)(R�R�RER�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__str__�scCs t|�S(N(Ry(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__repr__�ss>!<cCsI|j}|jd}|r?dj|| |||f�}n|j�S(s�Extracts the exception line from the input string, and marks the location of the exception with a special symbol. iR�(RBR�tjointstrip(R�t markerStringtline_strt line_column((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt markInputline�s    cCsdj�tt|��S(Nslineno col line(Rtdirttype(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__dir__�sN( R�R�t__doc__R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s    cBseZdZRS(s)exception thrown when parse expressions don't match class; supported attributes by name are: - lineno - returns the line number of the exception text - col - returns the column number of the exception text - line - returns the line containing the exception text (R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scBseZdZRS(snuser-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately(R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scBseZdZd�ZRS(s�just like C{L{ParseFatalException}}, but thrown internally when an C{L{ErrorStop<And._ErrorStop>}} ('-' operator) indicates that parsing is to stop immediately because an unbacktrackable syntax error has been foundcCs/tt|�j|j|j|j|j�dS(N(tsuperRR�R�R�R�R�(R�tpe((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s(R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scBs eZdZd�Zd�ZRS(sNexception thrown by C{validate()} if the grammar could be improperly recursivecCs ||_dS(N(tparseElementTrace(R�tparseElementList((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs d|jS(NsRecursiveGrammarException: %s(R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s(R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR!�s t_ParseResultsWithOffsetcBs,eZd�Zd�Zd�Zd�ZRS(cCs||f|_dS(N(ttup(R�tp1tp2((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs |j|S(N(R�(R�ti((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __getitem__scCs t|j�S(N(treprR�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scCs|jd|f|_dS(Ni(R�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt setOffsets(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s   cBs�eZdZd-d-eed�Zd-d-eeed�Zd�Zed�Z d�Z d�Z d�Z d�Z e Zd �Zd �Zd �Zd �Zd �Zer�eZeZeZnd�Zd�Zd�Zd�Zd�Zd-d�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$dd�Z%d �Z&d!�Z'd"�Z(d-e)ded#�Z*d$�Z+d%�Z,dd&d'�Z-d(�Z.d)�Z/d*�Z0d+�Z1d,�Z2RS(.s�Structured parse results, to provide multiple means of access to the parsed data: - as a list (C{len(results)}) - by list index (C{results[0], results[1]}, etc.) - by attribute (C{results.<resultsName>}) cCs/t||�r|Stj|�}t|_|S(N(Rmtobjectt__new__tTruet_ParseResults__doinit(tclsttoklisttnametasListtmodaltretobj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s  c Cs�|jr�t|_d|_d|_i|_||_||_|dkrTg}n||t�rp||_ n-||t �r�t|�|_ n |g|_ t �|_ n|dk r�|r�|s�d|j|<n||t �r�t|�}n||_||td�ttf�o+|ddgfks�||t�rI|g}n|r�||t�rzt|j�d�||<ntt|d�d�||<|||_q�y|d||<Wq�tttfk r�|||<q�Xq�ndS(NiR�(R�tFalseR�t_ParseResults__namet_ParseResults__parentt_ParseResults__accumNamest_ParseResults__asListt_ParseResults__modaltlistt_ParseResults__toklistt_generatorTypetdictt_ParseResults__tokdictRjRyR�t basestringRR�tcopytKeyErrort TypeErrort IndexError(R�R�R�R�R�Rm((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�sB            3 cCsnt|ttf�r |j|S||jkrB|j|ddStg|j|D]}|d^qS�SdS(Ni����i(RmRjtsliceR�R�R�R(R�R�tv((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�>s  cCs�||t�rB|jj|t��|g|j|<|d}n`||ttf�rm||j|<|}n5|jj|t��t|d�g|j|<|}||t�r�t|�|_ ndS(Ni( R�R�tgetR�RjR�R�RtwkrefR�(R�tkR�Rmtsub((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __setitem__Gs&   /c Cst|ttf�rt|j�}|j|=t|t�rl|dkrV||7}nt||d�}ntt|j|���}|j�x{|j j �D]]\}}xN|D]F}x=t |�D]/\}\}} t || | |k�||<q�Wq�Wq�Wn |j |=dS(Nii( RmRjR�tlenR�R�trangetindicestreverseR�titemst enumerateR�( R�R�tmylentremovedR�t occurrencestjR�tvaluetposition((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __delitem__Ts     ,cCs ||jkS(N(R�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __contains__nscCs t|j�S(N(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__len__qscCs |j S(N(R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__bool__rscCs t|j�S(N(titerR�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__iter__tscCst|jddd��S(Ni����(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __reversed__uscCs0t|jd�r|jj�St|j�SdS(sReturns all named result keys.titerkeysN(thasattrR�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�vs cs�fd��j�D�S(s Returns all named result values.c3s|]}�|VqdS(N((RzR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>s(R�(R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt itervalues}scs�fd��j�D�S(Nc3s|]}|�|fVqdS(N((RzR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�s(R�(R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt iteritems�scCst|j��S(sReturns all named result keys.(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytkeys�scCst|j��S(s Returns all named result values.(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytvalues�scCst|j��S(s=Returns all named result keys and values as a list of tuples.(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs t|j�S(s�Since keys() returns an iterator, this method is helpful in bypassing code that looks for the existence of any defined results names.(tboolR�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pythaskeys�scOs�|sdg}nxI|j�D];\}}|dkrJ|d|f}qtd|��qWt|dt�s�t|�dks�|d|kr�|d}||}||=|S|d}|SdS(sRemoves and returns item at specified index (default=last). Supports both list and dict semantics for pop(). If passed no argument or an integer argument, it will use list semantics and pop tokens from the list of parsed tokens. If passed a non-integer argument (most likely a string), it will use dict semantics and pop the corresponding value from any defined results names. A second default return value argument is supported, just as in dict.pop().i����tdefaultis-pop() got an unexpected keyword argument '%s'iN(R�R�RmRjR�(R�targstkwargsR�R�tindexRwt defaultvalue((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytpop�s      cCs||kr||S|SdS(s�Returns named result matching the given key, or if there is no such name, then returns the given C{defaultValue} or C{None} if no C{defaultValue} is specified.N((R�tkeyt defaultValue((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCsw|jj||�x]|jj�D]L\}}x=t|�D]/\}\}}t||||k�||<q<Wq#WdS(sCInserts new element at location index in the list of parsed tokens.N(R�tinsertR�R�R�R�(R�R�tinsStrR�R�R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs|jj|�dS(s;Add single element to end of ParseResults list of elements.N(R�tappend(R�titem((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs0t|t�r||7}n|jj|�dS(sAAdd sequence of elements to end of ParseResults list of elements.N(RmRR�textend(R�titemseq((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCs|j2|jj�dS(s%Clear all elements and results names.N(R�R�tclear(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs�y ||SWntk r dSX||jkr}||jkrR|j|ddStg|j|D]}|d^qc�SndSdS(NR�i����i(R�R�R�R(R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  +cCs|j�}||7}|S(N(R�(R�totherRw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__add__�s  c s�|jr�t|j���fd�}|jj�}g|D]<\}}|D])}|t|d||d��f^qMq=}xJ|D]?\}}|||<t|dt�r�t|�|d_q�q�Wn|j|j7_|j j |j �|S(Ncs|dkr�S|�S(Ni((ta(toffset(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl�sii( R�R�R�R�R�RmRR�R�R�tupdate(R�Rt addoffsett otheritemsR�tvlistR�totherdictitems((Rs9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__iadd__�s F cCs1t|t�r%|dkr%|j�S||SdS(Ni(RmRjR�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__radd__�s cCs dt|j�t|j�fS(Ns(%s, %s)(R�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scCs"ddjd�|jD��dS(Nt[s, css6|],}t|t�r$t|�n t|�VqdS(N(RmRRyR�(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr> st](R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�sR�cCsog}xb|jD]W}|r2|r2|j|�nt|t�rT||j�7}q|jt|��qW|S(N(R�R�RmRt _asStringListRy(R�tseptoutR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR  s cCs5g|jD]'}t|t�r+|j�n|^q S(sXReturns the parse results as a nested list of matching tokens, all converted to strings.(R�RmRR�(R�tres((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scsGtr|j}n |j}�fd��t�fd�|�D��S(s7Returns the named parse results as a nested dictionary.csMt|t�rE|j�r%|j�Sg|D]}�|�^q,Sn|SdS(N(RmRR�tasDict(RvR�(ttoItem(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR!s    c3s'|]\}}|�|�fVqdS(N((RzR�R�(R(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>*s(tPY_3R�R�R�(R�titem_fn((Rs9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRs    cCsPt|j�}|jj�|_|j|_|jj|j�|j|_|S(s/Returns a new copy of a C{ParseResults} object.(RR�R�R�R�R�RR�(R�Rw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�,s   c Cs�d}g}td�|jj�D��}|d}|sPd}d}d}nd } |d k rk|} n|jr�|j} n| s�|r�dSd} n|||d| dg7}x t|j�D]�\} } t| t�rI| |kr|| j || |o|d k||�g7}q�|| j d |o6|d k||�g7}q�d } | |krh|| } n| s�|rzq�q�d} nt t | ��} |||d| d| d| dg 7}q�W|||d| dg7}dj |�S( shReturns the parse results as XML. Tags are created for tokens and lists that have defined results names.s css2|](\}}|D]}|d|fVqqdS(iN((RzR�RR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>9s s R�tITEMt<t>s</N( R�R�R�R�R�R�R�RmRtasXMLR�RyR�(R�tdoctagtnamedItemsOnlytindentt formattedtnlRt namedItemstnextLevelIndenttselfTagR�RtresTagt xmlBodyText((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR5sT            cCsKxD|jj�D]3\}}x$|D]\}}||kr#|Sq#WqWdS(N(R�R�R�(R�R�R�RR�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__lookupps   cCs�|jr|jS|jr?|j�}|r8|j|�SdSn]t|�dkr�t|j�dkr�|jj�ddddkr�|jj�dSdSdS(s3Returns the results name for this token expression.iii����N(ii����(R�R�t_ParseResults__lookupR�R�R�R�R�(R�tpar((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytgetNamews    !ic Cs�g}d}|j|t|j���|j�r�t|j��}xk|D]�\}}|rp|j|�n|jd|d||f�t|t�r�|r�|j|j||d��q�|jt|��qN|jt|��qNWn�t d�|D��r�|}x�t |�D]�\}} t| t�ry|jd|d|||d|d| j||d�f�q|jd|d|||d|dt| �f�qWndj |�S(s�Diagnostic method for listing out the contents of a C{ParseResults}. Accepts an optional C{indent} argument so that this string can be embedded in a nested display of other data.s s %s%s- %s: s icss|]}t|t�VqdS(N(RmR(Rztvv((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�ss %s%s[%d]: %s%s%sR�( R�RyR�R�tsortedR�RmRtdumptanyR�R�( R�RtdepthRtNLR�R�R�R�R'((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR)�s*  B<cOstj|j�||�dS(s�Pretty-printer for parsed results as a list, using the C{pprint} module. Accepts additional positional or keyword args as defined for the C{pprint.pprint} method. (U{http://docs.python.org/3/library/pprint.html#pprint.pprint})N(tpprintR�(R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR-�scCsC|j|jj�|jdk r-|j�p0d|j|jffS(N(R�R�R�R�R�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __getstate__�s  cCsm|d|_|d\|_}}|_i|_|jj|�|dk r`t|�|_n d|_dS(Nii(R�R�R�R�RR�R�R�(R�tstateR%t inAccumNames((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __setstate__�s   cCs|j|j|j|jfS(N(R�R�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__getnewargs__�scCs tt|��t|j��S(N(R�R�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��sN(3R�R�R�R�R�R�RmR�R�R�R�R�R�R�t __nonzero__R�R�R�R�R�RR�R�R�R�R�R�R�R�R�R�R�RR R R�R�R R�RR�R�RR$R&R)R-R.R1R2R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRs` '                           ;     cCsC|}|t|�kr,||dkr,dS||jdd|�S(sReturns current column within a string, counting newlines as line separators. The first column is number 1. Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See L{I{ParserElement.parseString}<ParserElement.parseString>} for more information on parsing strings containing C{<TAB>}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. s ii(R�trfind(R�tstrgR~((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR4�s cCs|jdd|�dS(sReturns current line number within a string, counting newlines as line separators. The first line is number 1. Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See L{I{ParserElement.parseString}<ParserElement.parseString>} for more information on parsing strings containing C{<TAB>}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. s ii(tcount(R�R5((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRE�s cCsR|jdd|�}|jd|�}|dkrB||d|!S||dSdS(sfReturns the line of text containing loc within a string, counting newlines as line separators. s iiN(R4tfind(R�R5tlastCRtnextCR((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRB�s  cCsAdt|�dt|�dt||�t||�fGHdS(NsMatch s at loc s(%d,%d)(RyRER4(tinstringR�texpr((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt_defaultStartDebugAction�scCs'dt|�dt|j��GHdS(NsMatched s -> (RyRoR�(R:tstartloctendlocR;ttoks((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt_defaultSuccessDebugAction�scCsdt|�GHdS(NsException raised:(Ry(R:R�R;texc((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt_defaultExceptionDebugAction�scGsdS(sG'Do-nothing' debug action, to suppress debugging output during parsing.N((R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRL�sicsG�tkr�fd�Sdg�tg�����fd�}|S(Ncs �|�S(N((R~tlRk(tfunc(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRlsics�x�y&�|�d�}t�d<|SWqtk r��drI�nGz@tj�d}tj|�dd}|jd�s��nWd~X�d�kr��dcd7<qn�qXqdS(Nii����s#~@$^*)+_(&%#!=-`~;:"[]{}i(R�R�Rrtexc_infot tracebackt extract_tbtendswith(R�Rwttbtexc_source_line(t foundArityRDtlimittmaxargs(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytwrappers$    (tsingleArgBuiltinsR�(RDRMRN((RKRDRLRMs9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt _trim_aritys     cBs�eZdZdZeZed��Zed��Zed�Z d�Z d�Z ed�Z e d�Zd �Zd �Zd �Zd �Zd �Zd�Ze d�Zd�Ze e d�Zd�Zd�Ze e d�ZeZiZed��ZeZed��Zed�Z e!ed�Z"d�Z#e!d�Z$d�Z%d�Z&d�Z'd�Z(d�Z)d �Z*d!�Z+d"�Z,d#�Z-d$�Z.d%�Z/d&�Z0d'�Z1d<d(�Z3d)�Z4d*�Z5d+�Z6d,�Z7d-�Z8d.�Z9e d/�Z:d0�Z;d1�Z<d2�Z=d3�Z>gd4�Z?ed5�Z@d6�ZAd7�ZBd8�ZCd9�ZDd:�ZEed;�ZFRS(=s)Abstract base level parser element class.s cCs |t_dS(s/Overrides the default whitespace chars N(RtDEFAULT_WHITE_CHARS(tchars((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetDefaultWhitespaceChars3scCs |t_dS(sV Set class to be used for inclusion of string literals into a parser. N(RtliteralStringClass(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytinlineLiteralsUsing9scCs�t�|_d|_d|_d|_||_t|_t j |_ t|_ t |_t |_t�|_t |_t |_t|_d|_t|_d|_d|_t|_t |_dS(NR�(NNN(R�t parseActionR�t failActiontstrReprt resultsNamet saveAsListR�tskipWhitespaceRRQt whiteCharstcopyDefaultWhiteCharsR�tmayReturnEmptytkeepTabst ignoreExprstdebugt streamlinedt mayIndexErrorterrmsgt modalResultst debugActionstret callPreparset callDuringTry(R�tsavelist((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�@s(                   cCsEtj|�}|j|_|j|_|jrAtj|_n|S(s�Make a copy of this C{ParserElement}. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.(R�RVR`R]RRQR\(R�tcpy((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Ws    cCs>||_d|j|_t|d�r:|j|j_n|S(s6Define name for this expression, for use in debugging.s Expected t exception(R�RdR�RlR�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetNameas  cCsE|j�}|jd�r.|d }t}n||_| |_|S(s%Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original C{ParserElement} object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names. You can also set results names using the abbreviated syntax, C{expr("name")} in place of C{expr.setResultsName("name")} - see L{I{__call__}<__call__>}. t*i����(R�RHR�RYRe(R�R�tlistAllMatchestnewself((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetResultsNameis     csa|r9|j�tt�fd�}�|_||_n$t|jd�r]|jj|_n|S(s�Method to invoke the Python pdb debugger when this element is about to be parsed. Set C{breakFlag} to True to enable, False to disable. cs)ddl}|j��||||�S(Ni����(tpdbt set_trace(R:R�t doActionst callPreParseRr(t _parseMethod(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytbreaker�s  t_originalParseMethod(t_parseR�RxR�(R�t breakFlagRw((Rvs9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetBreak|s   cOs7tttt|���|_|jdt�|_|S(s_Define action to perform when successfully matching parse element definition. Parse action fn is a callable method with 0-3 arguments, called as C{fn(s,loc,toks)}, C{fn(loc,toks)}, C{fn(toks)}, or just C{fn()}, where: - s = the original string being parsed (see note below) - loc = the location of the matching substring - toks = a list of the matched tokens, packaged as a C{L{ParseResults}} object If the functions in fns modify the tokens, they can return them as the return value from fn, and the modified list of tokens will replace the original. Otherwise, fn does not need to return any value. Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See L{I{parseString}<parseString>} for more information on parsing strings containing C{<TAB>}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. Ri(R�tmapRPRVR�R�Ri(R�tfnsR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRt�scOsF|jtttt|���7_|jp<|jdt�|_|S(saAdd parse action to expression's list of parse actions. See L{I{setParseAction}<setParseAction>}.Ri(RVR�R|RPRiR�R�(R�R}R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytaddParseAction�s$csj|jd�pd�x0|D](���fd�}|jj|�qW|jp`|jdt�|_|S(s�Add a boolean predicate function to expression's list of parse actions. See L{I{setParseAction}<setParseAction>}. Optional keyword argument C{message} can be used to define a custom message to be used in the raised exception.tmessagesfailed user-defined conditioncs7tt��|||��s3t||���n|S(N(R�RPR(R~RCRk(tfnR�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytpa�sRi(R�RVR�RiR�(R�R}R�R�((R�R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt addCondition�s  cCs ||_|S(s Define action to perform if parsing fails at this expression. Fail acton fn is a callable function that takes the arguments C{fn(s,loc,expr,err)} where: - s = string being parsed - loc = location where expression match was attempted and failed - expr = the parse expression that failed - err = the exception thrown The function returns no value. It may throw C{L{ParseFatalException}} if it is desired to stop parsing immediately.(RW(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt setFailAction�s cCsmt}x`|rht}xM|jD]B}y(x!|j||�\}}t}q+Wqtk r`qXqWq W|S(N(R�R�R`RyR(R�R:R�t exprsFoundtetdummy((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt_skipIgnorables�s    cCsp|jr|j||�}n|jrl|j}t|�}x-||krh|||krh|d7}q?Wn|S(Ni(R`R�R[R\R�(R�R:R�twttinstrlen((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytpreParse�s    cCs |gfS(N((R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt parseImpl�scCs|S(N((R�R:R�t tokenlist((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt postParse�sc Cs�|j}|s|jr,|jdr?|jd|||�n|rc|jrc|j||�}n|}|}yUy|j|||�\}}Wn/tk r�t|t|�|j |��nXWq�t k r(} |jdr|jd|||| �n|jr"|j|||| �n�q�Xn�|rP|jrP|j||�}n|}|}|j sw|t|�kr�y|j|||�\}}Wq�tk r�t|t|�|j |��q�Xn|j|||�\}}|j |||�}t ||jd|jd|j�} |jrf|s7|jrf|r�yrxk|jD]`} | ||| �}|dk rJt ||jd|jo�t|t tf�d|j�} qJqJWWqct k r�} |jdr�|jd|||| �n�qcXqfxn|jD]`} | ||| �}|dk r�t ||jd|joMt|t tf�d|j�} q�q�Wn|r�|jdr�|jd||||| �q�n|| fS(NiiR�R�i(RaRWRfRhR�R�R�RR�RdRRcR�RRYRZReRVRiR�RmR�( R�R:R�RtRut debuggingtpreloct tokensStartttokensterrt retTokensR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt _parseNoCache�sp   &    %$       #cCsNy|j||dt�dSWn)tk rIt|||j|��nXdS(NRti(RyR�RRRd(R�R:R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyttryParse,s cCs7y|j||�Wnttfk r.tSXtSdS(N(R�RR�R�R�(R�R:R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt canParseNext2s cCs�|||||f}|tjkratj|}t|t�rI|�n|d|dj�fSyA|j||||�}|d|dj�ftj|<|SWn,tk r�}d|_|tj|<�nXdS(Nii( Rt _exprArgCacheRmt ExceptionR�R�RR�t __traceback__(R�R:R�RtRutlookupR�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt _parseCache<s  !  cCstjj�dS(N(RR�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt resetCacheQscCs%tjs!tt_tjt_ndS(s�Enables "packrat" parsing, which adds memoizing to the parsing logic. Repeated parse attempts at the same string location (which happens often in many complex grammars) can immediately return a cached value, instead of re-executing parsing/validating code. Memoizing is done of both valid results and parsing exceptions. This speedup may break existing programs that use parse actions that have side-effects. For this reason, packrat parsing is disabled when you first import pyparsing. To activate the packrat feature, your program must call the class method C{ParserElement.enablePackrat()}. If your program uses C{psyco} to "compile as you go", you must call C{enablePackrat} before calling C{psyco.full()}. If you do not do this, Python will crash. For best results, call C{enablePackrat()} immediately after importing pyparsing. N(Rt_packratEnabledR�R�Ry(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt enablePackratVs  cCs�tj�|js |j�nx|jD]}|j�q*W|jsV|j�}nyW|j|d�\}}|r�|j||�}t �t �}|j||�nWn(t k r�}tj r��q�|�nX|SdS(s�Execute the parse expression with the given string. This is the main interface to the client code, once the complete expression has been built. If you want the grammar to require that the entire input string be successfully parsed, then set C{parseAll} to True (equivalent to ending the grammar with C{L{StringEnd()}}). Note: C{parseString} implicitly calls C{expandtabs()} on the input string, in order to report proper column numbers in parse actions. If the input string contains tabs and the grammar uses parse actions that use the C{loc} argument to index into the string being parsed, you can ensure you have a consistent view of the input string by: - calling C{parseWithTabs} on your grammar before calling C{parseString} (see L{I{parseWithTabs}<parseWithTabs>}) - define your parse action using the full C{(s,loc,toks)} signature, and reference the input string using the parse action's C{s} argument - explictly expand the tabs in your input string before calling C{parseString} iN( RR�Rbt streamlineR`R_t expandtabsRyR�RR$Rtverbose_stacktrace(R�R:tparseAllR�R�R�tseRA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt parseStringks$      ccs�|js|j�nx|jD]}|j�q W|jsRt|�j�}nt|�}d}|j}|j}t j �d} y�x�||kra| |kray.|||�} ||| dt �\} } Wnt k r�| d}q�X| |krT| d7} | | | fV|rK|||�} | |kr>| }qQ|d7}q^| }q�| d}q�WWn(t k r�}t jr��q�|�nXdS(s"Scan the input string for expression matches. Each match will return the matching tokens, start location, and end location. May be called with optional C{maxMatches} argument, to clip scanning after 'n' matches are found. If C{overlap} is specified, then overlapping matches will be reported. Note that the start and end locations are reported relative to the string being parsed. See L{I{parseString}<parseString>} for more information on parsing strings with embedded tabs.iRuiN(RbR�R`R_RyR�R�R�RyRR�R�RRR�(R�R:t maxMatchestoverlapR�R�R�t preparseFntparseFntmatchesR�tnextLocR�tnextlocRA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt scanString�sB               c Cs%g}d}t|_y�x�|j|�D]}\}}}|j|||!�|r�t|t�rs||j�7}q�t|t�r�||7}q�|j|�n|}q(W|j||�g|D]}|r�|^q�}djt t t |���SWn(t k r }t jr�q!|�nXdS(s�Extension to C{L{scanString}}, to modify matching text with modified tokens that may be returned from a parse action. To use C{transformString}, define a grammar and attach a parse action to it that modifies the returned token list. Invoking C{transformString()} on a target string will then scan for matches, and replace the matched text patterns according to the logic in the parse action. C{transformString()} returns the resulting transformed string.iR�N(R�R_R�R�RmRR�R�R�R|Ryt_flattenRRR�( R�R:RtlastERkR~R�toRA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRu�s(     cCsey6tg|j||�D]\}}}|^q�SWn(tk r`}tjrW�qa|�nXdS(s�Another extension to C{L{scanString}}, simplifying the access to the tokens found to match the given parse expression. May be called with optional C{maxMatches} argument, to clip searching after 'n' matches are found. N(RR�RRR�(R�R:R�RkR~R�RA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt searchString�s 6 cCsdt|t�r!tj|�}nt|t�sTtjdt|�tdd�dSt ||g�S(s0Implementation of + operator - returns C{L{And}}s4Cannot combine element of type %s with ParserElementt stackleveliN( RmR�RRTtwarningstwarnR�t SyntaxWarningR�R(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s cCs\t|t�r!tj|�}nt|t�sTtjdt|�tdd�dS||S(sKImplementation of + operator when left operand is not a C{L{ParserElement}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR s cCsmt|t�r!tj|�}nt|t�sTtjdt|�tdd�dSt |t j �|g�S(s?Implementation of - operator, returns C{L{And}} with error stops4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�Rt _ErrorStop(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__sub__ s cCs\t|t�r!tj|�}nt|t�sTtjdt|�tdd�dS||S(sKImplementation of - operator when left operand is not a C{L{ParserElement}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__rsub__s csEt|t�r|d}}n-t|t�r7|d d }|dd kr_d|df}nt|dt�r�|dd kr�|ddkr�t��S|ddkr�t��S�|dt��SqLt|dt�rt|dt�r|\}}||8}qLtdt|d�t|d���ntdt|���|dkrgtd��n|dkr�td��n||ko�dknr�td��n|r��fd ��|r |dkr���|�}qt �g|��|�}qA�|�}n(|dkr.�}nt �g|�}|S( sImplementation of * operator, allows use of C{expr * 3} in place of C{expr + expr + expr}. Expressions may also me multiplied by a 2-integer tuple, similar to C{{min,max}} multipliers in regular expressions. Tuples may also include C{None} as in: - C{expr*(n,None)} or C{expr*(n,)} is equivalent to C{expr*n + L{ZeroOrMore}(expr)} (read as "at least n instances of C{expr}") - C{expr*(None,n)} is equivalent to C{expr*(0,n)} (read as "0 to n instances of C{expr}") - C{expr*(None,None)} is equivalent to C{L{ZeroOrMore}(expr)} - C{expr*(1,None)} is equivalent to C{L{OneOrMore}(expr)} Note that C{expr*(None,n)} does not raise an exception if more than n exprs exist in the input stream; that is, C{expr*(None,n)} does not enforce a maximum number of expr occurrences. If this behavior is desired, then write C{expr*(None,n) + ~expr} iiis7cannot multiply 'ParserElement' and ('%s','%s') objectss0cannot multiply 'ParserElement' and '%s' objectss/cannot multiply ParserElement by negative values@second tuple value must be greater or equal to first tuple values+cannot multiply ParserElement by 0 or (0,0)cs2|dkr$t��|d��St��SdS(Ni(R(tn(tmakeOptionalListR�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Rs N(NN( RmRjttupleR�R-RR�R�t ValueErrorR(R�Rt minElementst optElementsRw((R�R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__mul__!sD#  &  )      cCs |j|�S(N(R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__rmul__escCsdt|t�r!tj|�}nt|t�sTtjdt|�tdd�dSt ||g�S(s7Implementation of | operator - returns C{L{MatchFirst}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�R(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__or__hs cCs\t|t�r!tj|�}nt|t�sTtjdt|�tdd�dS||BS(sKImplementation of | operator when left operand is not a C{L{ParserElement}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__ror__rs cCsdt|t�r!tj|�}nt|t�sTtjdt|�tdd�dSt ||g�S(s/Implementation of ^ operator - returns C{L{Or}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�R(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__xor__|s cCs\t|t�r!tj|�}nt|t�sTtjdt|�tdd�dS||AS(sKImplementation of ^ operator when left operand is not a C{L{ParserElement}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__rxor__�s cCsdt|t�r!tj|�}nt|t�sTtjdt|�tdd�dSt ||g�S(s1Implementation of & operator - returns C{L{Each}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�R(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__and__�s cCs\t|t�r!tj|�}nt|t�sTtjdt|�tdd�dS||@S(sKImplementation of & operator when left operand is not a C{L{ParserElement}}s4Cannot combine element of type %s with ParserElementR�iN( RmR�RRTR�R�R�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__rand__�s cCs t|�S(s3Implementation of ~ operator - returns C{L{NotAny}}(R(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __invert__�scCs'|dk r|j|�S|j�SdS(s�Shortcut for C{L{setResultsName}}, with C{listAllMatches=default}:: userdata = Word(alphas).setResultsName("name") + Word(nums+"-").setResultsName("socsecno") could be written as:: userdata = Word(alphas)("name") + Word(nums+"-")("socsecno") If C{name} is given with a trailing C{'*'} character, then C{listAllMatches} will be passed as C{True}. If C{name} is omitted, same as calling C{L{copy}}. N(R�RqR�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__call__�s  cCs t|�S(s�Suppresses the output of this C{ParserElement}; useful to keep punctuation from cluttering up returned output. (R&(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsuppress�scCs t|_|S(sDisables the skipping of whitespace before matching the characters in the C{ParserElement}'s defined pattern. This is normally only used internally by the pyparsing module, but may be needed in some whitespace-sensitive grammars. (R�R[(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytleaveWhitespace�s cCst|_||_t|_|S(s/Overrides the default whitespace chars (R�R[R\R�R](R�RR((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetWhitespaceChars�s   cCs t|_|S(s�Overrides default behavior to expand C{<TAB>}s to spaces before parsing the input string. Must be called before C{parseString} when the input grammar contains elements that match C{<TAB>} characters.(R�R_(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt parseWithTabs�s cCsrt|t�rt|�}nt|t�rR||jkrn|jj|�qnn|jjt|j���|S(s�Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns. (RmR�R&R`R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytignore�scCs1|p t|pt|ptf|_t|_|S(sBEnable display of debugging messages while doing pattern matching.(R<R@RBRfR�Ra(R�t startActiont successActiontexceptionAction((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetDebugActions�s    cCs)|r|jttt�n t|_|S(s~Enable display of debugging messages while doing pattern matching. Set C{flag} to True to enable, False to disable.(R�R<R@RBR�Ra(R�tflag((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetDebug�s cCs|jS(N(R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs t|�S(N(Ry(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCst|_d|_|S(N(R�RbR�RX(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  cCsdS(N((R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytcheckRecursionscCs|jg�dS(sXCheck defined expressions for valid structure, check for infinite recursive definitions.N(R�(R�t validateTrace((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytvalidatescCs�y|j�}Wn6tk rHt|d�}|j�}|j�nXy|j||�SWn(tk r�}tjr~�q�|�nXdS(s�Execute the parse expression on the given file or filename. If a filename is specified (instead of a file object), the entire file is opened, read, and closed before parsing. trN(treadR�topentcloseR�RRR�(R�tfile_or_filenameR�t file_contentstfRA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt parseFiles   cCs�t|t�r1||kp0t|�t|�kSt|t�ryy!|jt|�dt�tSWq�tk rutSXnt t|�|kSdS(NR�( RmRtvarsR�R�RyR�RR�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__eq__s" cCs ||k S(N((R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__ne__'scCstt|��S(N(thashtid(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__hash__*scCs ||kS(N((R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__req__-scCs ||k S(N((R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__rne__0scCst|t�r*ttj|j��}nx�|D]�}|g}y&|j|j|d|�j��Wn�t k r�}d|kr�|jt |j |��|jdt |j |�dd�n|jd|j d�|jt|��nX|jd�dj |�GHq1WdS(s�Execute the parse expression on a series of test strings, showing each test, the parsed results or where the parse failed. Quick and easy way to run a parse expression against a list of sample strings. Parameters: - tests - a list of separate test strings, or a multiline string of test strings - parseAll - (default=False) - flag to pass to C{L{parseString}} when running tests R�s t it^R�N(RmR�R|RoR�t splitlinesR�R�R)RRBR�R4R�(R�ttestsR�RkRR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytrunTests3s   & ( N(GR�R�R�RQR�R�t staticmethodRSRUR�R�RmRqR�R{RtR~R�R�R�R�R�R�R�R�R�R�RyR�R�R�R�R�t_MAX_INTR�RuR�RR R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR.s�         H   -2 !  D                   cBseZdZd�ZRS(sJAbstract C{ParserElement} subclass, for defining atomic matching patterns.cCstt|�jdt�dS(NRj(R�R'R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Os(R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR'MscBseZdZd�ZRS(s"An empty token, will always match.cCs2tt|�j�d|_t|_t|_dS(NR(R�RR�R�R�R^R�Rc(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Us  (R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRSscBs#eZdZd�Zed�ZRS(sA token that will never match.cCs;tt|�j�d|_t|_t|_d|_dS(NRsUnmatchable token( R�RR�R�R�R^R�RcRd(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�^s    cCst|||j|��dS(N(RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�es(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR\s cBs#eZdZd�Zed�ZRS(s*Token to exactly match a specified string.cCs�tt|�j�||_t|�|_y|d|_Wn0tk rntj dt dd�t |_ nXdt |j�|_d|j|_t|_t|_dS(Nis2null string passed to Literal; use Empty() insteadR�is"%s"s Expected (R�RR�tmatchR�tmatchLentfirstMatchCharR�R�R�R�Rt __class__RyR�RdR�R^Rc(R�t matchString((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�ks      cCsg|||jkrK|jdks7|j|j|�rK||j|jfSt|||j|��dS(Ni(R�R�t startswithR�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�~s$(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRis cBsKeZdZedZeed�Zed�Zd�Z e d��Z RS(s�Token to exactly match a specified string as a keyword, that is, it must be immediately followed by a non-keyword character. Compare with C{L{Literal}}:: Literal("if") will match the leading C{'if'} in C{'ifAndOnlyIf'}. Keyword("if") will not; it will only match the leading C{'if'} in C{'if x=1'}, or C{'if(y==2)'} Accepts two optional constructor arguments in addition to the keyword string: C{identChars} is a string of characters that would be valid identifier characters, defaulting to all alphanumerics + "_" and "$"; C{caseless} allows case-insensitive matching, default is C{False}. s_$cCs�tt|�j�||_t|�|_y|d|_Wn'tk retj dt dd�nXd|j|_ d|j |_ t |_t |_||_|r�|j�|_|j�}nt|�|_dS(Nis2null string passed to Keyword; use Empty() insteadR�is"%s"s Expected (R�R R�R�R�R�R�R�R�R�R�R�RdR�R^Rctcaselesstuppert caselessmatchtsett identChars(R�R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s"      c Csb|jr�||||j!j�|jkrF|t|�|jkse|||jj�|jkrF|dks�||dj�|jkrF||j|jfSn�|||jkrF|jdks�|j|j|�rF|t|�|jks|||j|jkrF|dks2||d|jkrF||j|jfSt |||j |��dS(Nii( R�R�R�R�R�R�R�R�R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s #9)$3#cCs%tt|�j�}tj|_|S(N(R�R R�tDEFAULT_KEYWORD_CHARSR�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCs |t_dS(s,Overrides the default Keyword chars N(R R�(RR((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytsetDefaultKeywordChars�s( R�R�R�R.R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR �s     cBs#eZdZd�Zed�ZRS(s�Token to match a specified string, ignoring case of letters. Note: the matched results will always be in the case of the given match string, NOT the case of the input text. cCsItt|�j|j��||_d|j|_d|j|_dS(Ns'%s's Expected (R�RR�R�t returnStringR�Rd(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCsS||||j!j�|jkr7||j|jfSt|||j|��dS(N(R�R�R�R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s#(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s cBs#eZejd�Zed�ZRS(cCs#tt|�j||dt�dS(NR�(R�RR�R�(R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs�||||j!j�|jkrp|t|�|jks\|||jj�|jkrp||j|jfSt|||j|��dS(N(R�R�R�R�R�R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s#9(R�R�R R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�scBs>eZdZddddedd�Zed�Zd�ZRS(s�Token for matching words composed of allowed character sets. Defined with string containing all allowed initial characters, an optional string containing allowed body characters (if omitted, defaults to the initial character set), and an optional minimum, maximum, and/or exact length. The default value for C{min} is 1 (a minimum value < 1 is not valid); the default values for C{max} and C{exact} are 0, meaning no maximum or exact length restriction. An optional C{excludeChars} parameter can list characters that might be found in the input C{bodyChars} string; useful to define a word of all printables except for one or two characters, for instance. iicswtt|�j��rcdj�fd�|D��}|rcdj�fd�|D��}qcn||_t|�|_|r�||_t|�|_n||_t|�|_|dk|_ |dkr�t d��n||_ |dkr�||_ n t |_ |dkr)||_ ||_ nt|�|_d|j|_t|_||_d|j|jkrs|dkrs|dkrs|dkrs|j|jkr�d t|j�|_net|j�dkr�d tj|j�t|j�f|_n%d t|j�t|j�f|_|jrDd |jd |_nytj|j�|_Wqsd|_qsXndS( NR�c3s!|]}|�kr|VqdS(N((RzR�(t excludeChars(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�sc3s!|]}|�kr|VqdS(N((RzR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�siisZcannot specify a minimum length < 1; use Optional(Word()) if zero-length word is permitteds Expected R�s[%s]+s%s[%s]*s [%s][%s]*s\b(R�R*R�R�t initCharsOrigR�t initCharst bodyCharsOrigt bodyCharst maxSpecifiedR�tminLentmaxLenR�RyR�RdR�Rct asKeywordt_escapeRegexRangeCharstreStringR�RgtescapetcompileR�(R�R�R�tmintmaxtexactRR�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��sT%             :  c Cs�|jr[|jj||�}|s?t|||j|��n|j�}||j�fS|||jkr�t|||j|��n|}|d7}t|�}|j}||j }t ||�}x*||kr�|||kr�|d7}q�Wt } |||j krt } n|jrG||krG|||krGt } n|jr�|dkrp||d|ks�||kr�|||kr�t } q�n| r�t|||j|��n||||!fS(Nii(RgR�RRdtendtgroupR�R�R�RRR�RR�RR( R�R:R�RttresulttstartR�t bodycharstmaxloctthrowException((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s6       %  < cCs�ytt|�j�SWnnX|jdkr�d�}|j|jkrsd||j�||j�f|_q�d||j�|_n|jS(NcSs&t|�dkr|d dS|SdS(Nis...(R�(R~((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt charsAsStrGs s W:(%s,%s)sW:(%s)(R�R*R�RXR�R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�>s (N( R�R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR*�s 6 #cBsDeZdZeejd��Zdd�Zed�Z d�Z RS(s�Token for matching strings that match a given regular expression. Defined with string specifying the regular expression in a form recognized by the inbuilt Python re module. s[A-Z]icCs3tt|�j�t|t�r�|sAtjdtdd�n||_||_ y+t j |j|j �|_ |j|_ Wq�t jk r�tjd|tdd��q�XnIt|tj�r�||_ t|�|_|_ ||_ n td��t|�|_d|j|_t|_t|_dS(s�The parameters C{pattern} and C{flags} are passed to the C{re.compile()} function as-is. See the Python C{re} module for an explanation of the acceptable patterns and flags.s0null string passed to Regex; use Empty() insteadR�is$invalid pattern (%s) passed to RegexsCRegex may only be constructed with a string or a compiled RE objects Expected N(R�R"R�RmR�R�R�R�tpatterntflagsRgRRt sre_constantsterrortcompiledREtypeRoR�RyR�RdR�RcR�R^(R�RR((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Zs.          cCs�|jj||�}|s6t|||j|��n|j�}|j�}t|j��}|r�x|D]}||||<qmWn||fS(N(RgR�RRdR t groupdictRR (R�R:R�RtR tdRwR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�|s   cCsPytt|�j�SWnnX|jdkrIdt|j�|_n|jS(NsRe:(%s)(R�R"R�RXR�R�R(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s( R�R�R�R�RgRRR�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR"Us  " cBs>eZdZddeeded�Zed�Zd�ZRS(sIToken for matching strings that are delimited by quoting characters. c stt��j�|j�}|sGtjdtdd�t��n|dkr\|}n4|j�}|s�tjdtdd�t��n|�_ t |��_ |d�_ |�_ t |��_|�_|�_|�_|�_|rTtjtjB�_dtj�j �t�j d�|dk rDt|�pGdf�_nPd�_dtj�j �t�j d�|dk r�t|�p�df�_t �j �d kr�jd d j�fd �tt �j �d dd �D��d7_n|r*�jdtj|�7_n|rh�jdtj|�7_tj�j�d�_n�jdtj�j �7_y+tj�j�j��_�j�_Wn4tj k r�tjd�jtdd��nXt!���_"d�j"�_#t$�_%t&�_'dS(sbDefined with the following parameters: - quoteChar - string of one or more characters defining the quote delimiting string - escChar - character to escape quotes, typically backslash (default=None) - escQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape an embedded ") (default=None) - multiline - boolean indicating whether quotes can span multiple lines (default=C{False}) - unquoteResults - boolean indicating whether the matched text should be unquoted (default=C{True}) - endQuoteChar - string of one or more characters defining the end of the quote delimited string (default=C{None} => same as quoteChar) - convertWhitespaceEscapes - convert escaped whitespace (C{'\t'}, C{'\n'}, etc.) to actual whitespace (default=C{True}) s$quoteChar cannot be the empty stringR�is'endQuoteChar cannot be the empty stringis %s(?:[^%s%s]R�s%s(?:[^%s\n\r%s]is|(?:s)|(?:c3s<|]2}dtj�j| �t�j|�fVqdS(s%s[^%s]N(RgRt endQuoteCharR(RzR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>�si����t)s|(?:%s)s|(?:%s.)s(.)s)*%ss$invalid pattern (%s) passed to Regexs Expected N((R�R R�R�R�R�R�t SyntaxErrorR�t quoteCharR�t quoteCharLentfirstQuoteCharRtendQuoteCharLentescChartescQuotetunquoteResultstconvertWhitespaceEscapesRgt MULTILINEtDOTALLRRRRR�R�tescCharReplacePatternRRRRRyR�RdR�RcR�R^(R�RR!R"t multilineR#RR$((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��sf              ( %E  c CsT|||jkr(|jj||�p+d}|sOt|||j|��n|j�}|j�}|jrJ||j |j !}t |t �rJd|kr�|j r�idd6dd6dd6dd 6}x/|j�D]\}}|j||�}q�Wn|jr tj|jd |�}n|jrG|j|j|j�}qGqJn||fS( Ns\s s\ts s\ns s\fs s\rs\g<1>(RRgR�R�RRdR R R#RR RmR�R$R�R�R!R�R'R"R( R�R:R�RtR Rwtws_maptwslittwschar((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s*.      !cCsSytt|�j�SWnnX|jdkrLd|j|jf|_n|jS(Ns.quoted string, starting with %s ending with %s(R�R R�RXR�RR(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�sN( R�R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR �sJ #cBs5eZdZdddd�Zed�Zd�ZRS(s�Token for matching words composed of characters *not* in a given set. Defined with string containing all disallowed characters, and an optional minimum, maximum, and/or exact length. The default value for C{min} is 1 (a minimum value < 1 is not valid); the default values for C{max} and C{exact} are 0, meaning no maximum or exact length restriction. iicCs�tt|�j�t|_||_|dkr@td��n||_|dkra||_n t |_|dkr�||_||_nt |�|_ d|j |_ |jdk|_ t|_dS(Nisfcannot specify a minimum length < 1; use Optional(CharsNotIn()) if zero-length char group is permittedis Expected (R�RR�R�R[tnotCharsR�RRR�RyR�RdR^Rc(R�R,RR R ((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s           cCs�|||jkr.t|||j|��n|}|d7}|j}t||jt|��}x*||kr�|||kr�|d7}qfW|||jkr�t|||j|��n||||!fS(Ni(R,RRdRRR�R(R�R:R�RtRtnotcharstmaxlen((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�0s  cCsvytt|�j�SWnnX|jdkrot|j�dkr\d|jd |_qod|j|_n|jS(Nis !W:(%s...)s!W:(%s)(R�RR�RXR�R�R,(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�As(R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRs cBsXeZdZidd6dd6dd6dd6d d 6Zd d d d d�Zed�ZRS(s�Special matching class for matching whitespace. Normally, whitespace is ignored by pyparsing grammars. This class is included when some whitespace structures are significant. Define with a string containing the whitespace characters to be matched; default is C{" \t\r\n"}. Also takes optional C{min}, C{max}, and C{exact} arguments, as defined for the C{L{Word}} class.s<SPC>R�s<TAB>s s<LF>s s<CR>s s<FF>s s iics�tt��j�|�_�jdj�fd��jD���djd��jD���_t�_ d�j�_ |�_ |dkr�|�_ n t �_ |dkr�|�_ |�_ ndS(NR�c3s$|]}|�jkr|VqdS(N(t matchWhite(RzR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>_scss|]}tj|VqdS(N(R)t whiteStrs(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>ass Expected i(R�R)R�R/R�R�R\R�R�R^RdRRR�(R�twsRR R ((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�\s )       cCs�|||jkr.t|||j|��n|}|d7}||j}t|t|��}x-||kr�|||jkr�|d7}qcW|||jkr�t|||j|��n||||!fS(Ni(R/RRdRRR�R(R�R:R�RtRR((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�ps  "(R�R�R�R0R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR)Os t_PositionTokencBseZd�ZRS(cCs8tt|�j�|jj|_t|_t|_ dS(N( R�R2R�R�R�R�R�R^R�Rc(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s (R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR2�scBs,eZdZd�Zd�Zed�ZRS(sXToken to advance to a specific column of input text; useful for tabular report scraping.cCs tt|�j�||_dS(N(R�R R�R4(R�tcolno((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs�t||�|jkr�t|�}|jrB|j||�}nxE||kr�||j�r�t||�|jkr�|d7}qEWn|S(Ni(R4R�R`R�tisspace(R�R:R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  7cCs^t||�}||jkr6t||d|��n||j|}|||!}||fS(NsText not in expected column(R4R(R�R:R�RttthiscoltnewlocRw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  (R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR �s  cBs,eZdZd�Zd�Zed�ZRS(sQMatches if current position is at the beginning of a line within the parse stringcCs<tt|�j�|jtjjdd��d|_dS(Ns R�sExpected start of line(R�RR�R�RRQR�Rd(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs<tt|�j||�}||dkr8|d7}n|S(Ns i(R�RR�(R�R:R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCs]|dkp5||j|d�kp5||ddksSt|||j|��n|gfS(Niis (R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  (R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s  cBs#eZdZd�Zed�ZRS(sKMatches if current position is at the end of a line within the parse stringcCs<tt|�j�|jtjjdd��d|_dS(Ns R�sExpected end of line(R�RR�R�RRQR�Rd(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs�|t|�krK||dkr0|ddfSt|||j|��n8|t|�krk|dgfSt|||j|��dS(Ns i(R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�s cBs#eZdZd�Zed�ZRS(sCMatches if current position is at the beginning of the parse stringcCs tt|�j�d|_dS(NsExpected start of text(R�R%R�Rd(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCsL|dkrB||j|d�krBt|||j|��qBn|gfS(Ni(R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s (R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR%�s cBs#eZdZd�Zed�ZRS(s=Matches if current position is at the end of the parse stringcCs tt|�j�d|_dS(NsExpected end of text(R�R$R�Rd(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs�|t|�kr-t|||j|��nT|t|�krM|dgfS|t|�kri|gfSt|||j|��dS(Ni(R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s (R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR$�s cBs&eZdZed�Zed�ZRS(swMatches if the current position is at the beginning of a Word, and is not preceded by any character in a given set of C{wordChars} (default=C{printables}). To emulate the C{} behavior of regular expressions, use C{WordStart(alphanums)}. C{WordStart} will also match at the beginning of the string being parsed, or at the beginning of a line. cCs/tt|�j�t|�|_d|_dS(NsNot at the start of a word(R�R,R�R�t wordCharsRd(R�R7((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��scCs^|dkrT||d|jks6|||jkrTt|||j|��qTn|gfS(Nii(R7RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s  (R�R�R�RQR�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR,�s cBs&eZdZed�Zed�ZRS(saMatches if the current position is at the end of a Word, and is not followed by any character in a given set of C{wordChars} (default=C{printables}). To emulate the C{} behavior of regular expressions, use C{WordEnd(alphanums)}. C{WordEnd} will also match at the end of the string being parsed, or at the end of a line. cCs8tt|�j�t|�|_t|_d|_dS(NsNot at the end of a word(R�R+R�R�R7R�R[Rd(R�R7((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR��s cCsvt|�}|dkrl||krl|||jksN||d|jkrlt|||j|��qln|gfS(Nii(R�R7RRd(R�R:R�RtR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s  (R�R�R�RQR�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR+�s cBsqeZdZed�Zd�Zd�Zd�Zd�Zd�Z d�Z ed�Z gd �Z d �Z RS( sTAbstract subclass of ParserElement, for combining and post-processing parsed tokens.cCs�tt|�j|�t|t�r4t|�}nt|t�rXt|�g|_nt|t j �r�t d�|D��r�t t|�}nt|�|_n3yt|�|_Wnt k r�|g|_nXt|_dS(Ncss|]}t|t�VqdS(N(RmR�(RzR;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr> s(R�RR�RmR�R�R�Rtexprst collectionstSequencetallR|R�R�Rh(R�R8Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s cCs |j|S(N(R8(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� scCs|jj|�d|_|S(N(R8R�R�RX(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�" s cCsPt|_g|jD]}|j�^q|_x|jD]}|j�q8W|S(s~Extends C{leaveWhitespace} defined in base class, and also invokes C{leaveWhitespace} on all contained expressions.(R�R[R8R�R�(R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�' s  %cCs�t|t�rb||jkr�tt|�j|�x(|jD]}|j|jd�q>Wq�n>tt|�j|�x%|jD]}|j|jd�q�W|S(Ni����(RmR&R`R�RR�R8(R�RR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�0 scCs\ytt|�j�SWnnX|jdkrUd|jjt|j�f|_n|jS(Ns%s:(%s)( R�RR�RXR�R�R�RyR8(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�< s%c Cswtt|�j�x|jD]}|j�qWt|j�dkr`|jd}t||j�r�|j r�|jdkr�|j r�|j|jdg|_d|_ |j |j O_ |j |j O_ n|jd}t||j�r`|j r`|jdkr`|j r`|jd |j|_d|_ |j |j O_ |j |j O_ q`ndt|�|_|S(Niiii����s Expected (R�RR�R8R�RmR�RVRYR�RaRXR^RcRyRd(R�R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�F s0        cCstt|�j||�}|S(N(R�RRq(R�R�RoRw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRqh scCs@||g}x|jD]}|j|�qW|jg�dS(N(R8R�R�(R�R�ttmpR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�l scCs>tt|�j�}g|jD]}|j�^q|_|S(N(R�RR�R8(R�RwR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�r s%(R�R�R�R�R�R�R�R�R�R�R�RqR�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR s    "  cBsWeZdZdefd��YZed�Zed�Zd�Zd�Z d�Z RS(s�Requires all given C{ParseExpression}s to be found in the given order. Expressions may be separated by whitespace. May be constructed using the C{'+'} operator. R�cBseZd�ZRS(cOs3ttj|�j||�d|_|j�dS(Nt-(R�RR�R�R�R�(R�R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�~ s (R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�} scCsltt|�j||�td�|jD��|_|j|jdj�|jdj|_t |_ dS(Ncss|]}|jVqdS(N(R^(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� si( R�RR�R;R8R^R�R\R[R�Rh(R�R8Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s c CsB|jdj|||dt�\}}t}x|jdD]�}t|tj�r`t}q<n|r�y|j|||�\}}Wqtk r��qtk r�}d|_ t|��qt k r�tt |t |�|j|���qXn|j|||�\}}|s'|j�r<||7}q<q<W||fS(NiRui(R8RyR�RmRR�R�RRR�R�R�RR�RdR�( R�R:R�Rtt resultlistt errorStopR�t exprtokensR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s((   +cCs+t|t�rt|�}n|j|�S(N(RmR�RR�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR � scCs@||g}x+|jD] }|j|�|jsPqqWdS(N(R8R�R^(R�R�tsubRecCheckListR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s   cCsVt|d�r|jS|jdkrOddjd�|jD��d|_n|jS(NR�t{R�css|]}t|�VqdS(N(Ry(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� st}(R�R�RXR�R�R8(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s *( R�R�R�RR�R�R�R�R R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRw s    cBsAeZdZed�Zed�Zd�Zd�Zd�Z RS(s�Requires that at least one C{ParseExpression} is found. If two expressions match, the expression that matches the longest string will be used. May be constructed using the C{'^'} operator. cCsNtt|�j||�|jrAtd�|jD��|_n t|_dS(Ncss|]}|jVqdS(N(R^(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� s(R�RR�R8R*R^R�(R�R8Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s c Cs�d}d}g}x�|jD]�}y|j||�}Wn�tk rw} d| _| j|kr�| }| j}q�qtk r�t|�|kr�t|t|�|j|�}t|�}q�qX|j ||f�qW|rh|j dd��xn|D]c\} }y|j |||�SWq�tk r`} d| _| j|kra| }| j}qaq�Xq�Wn|dk r�|j|_ |�nt||d|��dS(Ni����R�cSs |d S(Ni((tx((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� ss no defined alternatives to match( R�R8R�RR�R�R�R�RdR�tsortRyR�( R�R:R�Rtt maxExcLoct maxExceptionR�R�tloc2R�t_((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s<      cCs.t|t�r!tj|�}n|j|�S(N(RmR�RRTR�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__ixor__� scCsVt|d�r|jS|jdkrOddjd�|jD��d|_n|jS(NR�RBs ^ css|]}t|�VqdS(N(Ry(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� sRC(R�R�RXR�R�R8(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s *cCs3||g}x|jD]}|j|�qWdS(N(R8R�(R�R�RAR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s( R�R�R�R�R�R�R�RJR�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s   &  cBsAeZdZed�Zed�Zd�Zd�Zd�Z RS(s�Requires that at least one C{ParseExpression} is found. If two expressions match, the first one listed is the one that will match. May be constructed using the C{'|'} operator. cCsNtt|�j||�|jrAtd�|jD��|_n t|_dS(Ncss|]}|jVqdS(N(R^(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr> s(R�RR�R8R*R^R�(R�R8Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s c Cs�d}d}x�|jD]�}y|j|||�}|SWqtk ro}|j|kr�|}|j}q�qtk r�t|�|kr�t|t|�|j|�}t|�}q�qXqW|dk r�|j|_|�nt||d|��dS(Ni����s no defined alternatives to match( R�R8RyRR�R�R�RdR�( R�R:R�RtRFRGR�RwR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s$    cCs.t|t�r!tj|�}n|j|�S(N(RmR�RRTR�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt__ior__# scCsVt|d�r|jS|jdkrOddjd�|jD��d|_n|jS(NR�RBs | css|]}t|�VqdS(N(Ry(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>- sRC(R�R�RXR�R�R8(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�( s *cCs3||g}x|jD]}|j|�qWdS(N(R8R�(R�R�RAR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�1 s( R�R�R�R�R�R�R�RKR�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s     cBs8eZdZed�Zed�Zd�Zd�ZRS(s�Requires all given C{ParseExpression}s to be found, but in any order. Expressions may be separated by whitespace. May be constructed using the C{'&'} operator. cCsKtt|�j||�td�|jD��|_t|_t|_dS(Ncss|]}|jVqdS(N(R^(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>> s( R�RR�R;R8R^R�R[tinitExprGroups(R�R8Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�< s cCs�|jrLtd�|jD��|_g|jD]}t|t�r/|j^q/}g|jD]%}|jr]t|t� r]|^q]}|||_g|jD]}t|t �r�|j^q�|_ g|jD]}t|t �r�|j^q�|_ g|jD]$}t|tt t f�s|^q|_ |j |j 7_ t|_n|}|j }|j} g} t} x�| r_|| |j |j } g} x�| D]�}y|j||�}Wntk r�| j|�q�X| j|jjt|�|��||kr|j|�q�|| kr�| j|�q�q�Wt| �t| �krut} ququW|r�djd�|D��}t||d|��n| g|jD]*}t|t�r�|j| kr�|^q�7} g}x6| D].}|j|||�\}}|j|�q�Wt�}x�|D]�}i}xQ|j�D]C}||kr>t||�}|t||�7}|||<q>q>W|t|�7}x$|j�D]\}}|||<q�Wq%W||fS(Ncss3|])}t|t�rt|j�|fVqdS(N(RmRR�R;(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>D ss, css|]}t|�VqdS(N(Ry(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>e ss*Missing one or more required elements (%s)(RLR�R8topt1mapRmRR;R^t optionalsR-tmultioptionalsRt multirequiredtrequiredR�R�R�RR�R�R�tremoveR�R�RyRR�R�(R�R:R�RtR�topt1topt2ttmpLocttmpReqdttmpOptt matchOrdert keepMatchingttmpExprstfailedtmissingR>tresultst finalResultsR�tdupsR�R<R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�B sd .5 117      "   >    cCsVt|d�r|jS|jdkrOddjd�|jD��d|_n|jS(NR�RBs & css|]}t|�VqdS(N(Ry(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� sRC(R�R�RXR�R�R8(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�} s *cCs3||g}x|jD]}|j|�qWdS(N(R8R�(R�R�RAR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s(R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR7 s   ; cBs_eZdZed�Zed�Zd�Zd�Zd�Z d�Z gd�Z d�Z RS( sWAbstract subclass of C{ParserElement}, for combining and post-processing parsed tokens.cCs�tt|�j|�t|t�r4t|�}n||_d|_|dk r�|j |_ |j |_ |j |j �|j |_ |j|_|j|_|jj|j�ndS(N(R�RR�RmR�RR;R�RXRcR^R�R\R[RZRhR`R�(R�R;Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s        cCsG|jdk r+|jj|||dt�Std||j|��dS(NRuR�(R;R�RyR�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCs>t|_|jj�|_|jdk r:|jj�n|S(N(R�R[R;R�R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s  cCs�t|t�rc||jkr�tt|�j|�|jdk r`|jj|jd�q`q�n?tt|�j|�|jdk r�|jj|jd�n|S(Ni����(RmR&R`R�RR�R;R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s cCs6tt|�j�|jdk r2|jj�n|S(N(R�RR�R;R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCsV||kr"t||g��n||g}|jdk rR|jj|�ndS(N(R!R;R�R�(R�R�RA((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s  cCsA||g}|jdk r0|jj|�n|jg�dS(N(R;R�R�R�(R�R�R<((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCskytt|�j�SWnnX|jdkrd|jdk rdd|jjt|j�f|_n|jS(Ns%s:(%s)( R�RR�RXR�R;R�R�Ry(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s%( R�R�R�R�R�R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s      cBs#eZdZd�Zed�ZRS(sLookahead matching of the given parse expression. C{FollowedBy} does *not* advance the parsing position within the input string, it only verifies that the specified parse expression matches at the current position. C{FollowedBy} always returns a null token list.cCs#tt|�j|�t|_dS(N(R�R R�R�R^(R�R;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCs|jj||�|gfS(N(R;R�(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR � s cBs,eZdZd�Zed�Zd�ZRS(s�Lookahead to disallow matching with the given parse expression. C{NotAny} does *not* advance the parsing position within the input string, it only verifies that the specified parse expression does *not* match at the current position. Also, C{NotAny} does *not* skip over leading whitespace. C{NotAny} always returns a null token list. May be constructed using the '~' operator.cCsBtt|�j|�t|_t|_dt|j�|_ dS(NsFound unwanted token, ( R�RR�R�R[R�R^RyR;Rd(R�R;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s  cCs:|jj||�r0t|||j|��n|gfS(N(R;R�RRd(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCsIt|d�r|jS|jdkrBdt|j�d|_n|jS(NR�s~{RC(R�R�RXR�RyR;(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s (R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s  cBs;eZdZdd�Zed�Zd�Zed�Z RS(sGRepetition of one or more of the given expression. Parameters: - expr - expression that must match one or more times - stopOn - (default=None) - expression for a terminating sentinel (only required if the sentinel would ordinarily match the repetition expression) cCsZtt|�j|�|}t|t�r:t|�}n|dk rM|nd|_dS(N(R�RR�RmR�RR�t not_ender(R�R;tstopOntender((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s c Cs|jj}|j}|jdk }|r9|jj}n|rO|||�n||||dt�\}}y�|j } xn|r�|||�n| r�|||�} n|} ||| |�\}} | s�| j�r~|| 7}q~q~Wnt t fk rnX||fS(NRu( R;RyR�R`R�R�R�R`R�RR�( R�R:R�Rttself_expr_parsetself_skip_ignorablest check_endert try_not_enderR�thasIgnoreExprsR�t tmptokens((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s,   cCsIt|d�r|jS|jdkrBdt|j�d|_n|jS(NR�RBs}...(R�R�RXR�RyR;(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�+ s cCs(tt|�j||�}t|_|S(N(R�RRqR�RZ(R�R�RoRw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRq4 s N( R�R�R�R�R�R�R�R�R�Rq(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s    cBs/eZdZdd�Zed�Zd�ZRS(sROptional repetition of zero or more of the given expression. Parameters: - expr - expression that must match zero or more times - stopOn - (default=None) - expression for a terminating sentinel (only required if the sentinel would ordinarily match the repetition expression) cCs)tt|�j|d|�t|_dS(NRa(R�R-R�R�R^(R�R;Ra((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�B scCsEy tt|�j|||�SWnttfk r@|gfSXdS(N(R�R-R�RR�(R�R:R�Rt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�F s cCsIt|d�r|jS|jdkrBdt|j�d|_n|jS(NR�R s]...(R�R�RXR�RyR;(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�L s N(R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR-9 s  t _NullTokencBs eZd�ZeZd�ZRS(cCstS(N(R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�V scCsdS(NR�((R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�Y s(R�R�R�R3R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRiU s cBs/eZdZed�Zed�Zd�ZRS(s�Optional matching of the given expression. Parameters: - expr - expression that must match zero or more times - default (optional) - value to be returned if the optional expression is not found. cCs2tt|�j|dt�||_t|_dS(NRj(R�RR�R�R�R�R^(R�R;R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�e s cCs�y(|jj|||dt�\}}Wnottfk r�|jtk r�|jjr�t|jg�}|j||jj<q�|jg}q�g}nX||fS(NRu( R;RyR�RR�R�t_optionalNotMatchedRYR(R�R:R�RtR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�j s(  cCsIt|d�r|jS|jdkrBdt|j�d|_n|jS(NR�R R (R�R�RXR�RyR;(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�x s (R�R�R�RjR�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR] s  cBs,eZdZeddd�Zed�ZRS(s�Token for skipping over all undefined text until the matched expression is found. Parameters: - expr - target expression marking the end of the data to be skipped - include - (default=False) if True, the target expression is also parsed (the skipped text and target expression are returned as a 2-element list). - ignore - (default=None) used to define grammars (typically quoted strings and comments) that might contain false matches to the target expression - failOn - (default=None) define expressions that are not allowed to be included in the skipped test; if found before the target expression is found, the SkipTo is not a match cCs�tt|�j|�||_t|_t|_||_t|_ t |t �rdt |�|_ n ||_ dt|j�|_dS(NsNo match found for (R�R#R�t ignoreExprR�R^R�Rct includeMatchR�RmR�RtfailOnRyR;Rd(R�RtincludeR�Rm((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s      cCs�|}t|�}|j}|jj}|jdk rB|jjnd}|jdk rc|jjnd} |} x�| |kr"|dk r�||| �r�Pq�n| dk r�x.y| || �} Wq�tk r�Pq�Xq�ny||| dt dt �Wn!t t fk r| d7} qrXPqrWt |||j |��| }|||!} t | �} |jr�||||dt �\}} | | 7} n|| fS(NRtRui(R�R;RyRmR�R�RkR�RR�RR�RdRRl(R�R:R�RtR=R�R;t expr_parsetself_failOn_canParseNexttself_ignoreExpr_tryParsettmploctskiptextt skipresulttmat((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s<   !!        N(R�R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR#� s  cBs\eZdZd d�Zd�Zd�Zd�Zd�Zgd�Z d�Z d�Z RS( sForward declaration of an expression to be defined later - used for recursive grammars, such as algebraic infix notation. When the expression is known, it is assigned to the C{Forward} variable using the '<<' operator. Note: take care when assigning to C{Forward} not to overlook precedence of operators. Specifically, '|' has a lower precedence than '<<', so that:: fwdExpr << a | b | c will actually be evaluated as:: (fwdExpr << a) | b | c thereby leaving b and c out as parseable alternatives. It is recommended that you explicitly group the values inserted into the C{Forward}:: fwdExpr << (a | b | c) Converting to use the '<<=' operator instead will avoid this problem. cCs tt|�j|dt�dS(NRj(R�R R�R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� scCs�t|t�r!tj|�}n||_d|_|jj|_|jj|_|j |jj �|jj |_ |jj |_ |j j|jj �|S(N(RmR�RRTR;R�RXRcR^R�R\R[RZR`R�(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __lshift__� s  cCs||>S(N((R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt __ilshift__� scCs t|_|S(N(R�R[(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s cCs8|js4t|_|jdk r4|jj�q4n|S(N(RbR�R;R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s   cCsP||kr?||g}|jdk r?|jj|�q?n|jg�dS(N(R;R�R�R�(R�R�R<((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s  cCs�t|d�r|jS|jjdS|j|_t|_z+|jdk r]t|j�}nd}Wd|j|_X|jjd|S(NR�s: ...R�s: ( R�R�R�R�t _revertClasst_ForwardNoRecurseR;R�Ry(R�t retString((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s    cCs=|jdk r"tt|�j�St�}||K}|SdS(N(R;R�R�R R�(R�Rw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s   N( R�R�R�R�R�RvRwR�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR � s      RycBseZd�ZRS(cCsdS(Ns...((R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s(R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRy scBseZdZed�ZRS(sGAbstract subclass of C{ParseExpression}, for converting parsed results.cCs#tt|�j|�t|_dS(N(R�R(R�R�RZ(R�R;Rj((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s(R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR( scBs/eZdZded�Zd�Zd�ZRS(s�Converter to concatenate all matching tokens to a single string. By default, the matching patterns must also be contiguous in the input string; this can be disabled by specifying C{'adjacent=False'} in the constructor. R�cCsQtt|�j|�|r)|j�n||_t|_||_t|_dS(N( R�RR�R�tadjacentR�R[t joinStringRh(R�R;R|R{((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�& s    cCs6|jrtj||�ntt|�j|�|S(N(R{RR�R�R(R�R((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�0 s cCse|j�}|2|tdj|j|j��gd|j�7}|jr]|j�r]|gS|SdS(NR�R�(R�RR�R R|ReRYR�(R�R:R�R�tretToks((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�7 s  1(R�R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR! s cBs eZdZd�Zd�ZRS(s�Converter to return the matched tokens as a list - useful for returning tokens of C{L{ZeroOrMore}} and C{L{OneOrMore}} expressions.cCs#tt|�j|�t|_dS(N(R�R R�R�RZ(R�R;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�C scCs|gS(N((R�R:R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�G s(R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR A s cBs eZdZd�Zd�ZRS(sConverter to return a repetitive expression as a list, but also as a dictionary. Each element can also be referenced using the first token in the expression as its key. Useful for tabular report scraping when the first column can be used as a item key. cCs#tt|�j|�t|_dS(N(R�RR�R�RZ(R�R;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�O scCsTx9t|�D]+\}}t|�dkr1q n|d}t|t�rct|d�j�}nt|�dkr�td|�||<q t|�dkr�t|dt� r�t|d|�||<q |j�}|d=t|�dks t|t�r!|j �r!t||�||<q t|d|�||<q W|j rL|gS|SdS(NiiR�i( R�R�RmRjRyR�R�RR�R�RY(R�R:R�R�R�ttoktikeyt dictvalue((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�S s$ & - (R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRJ s cBs eZdZd�Zd�ZRS(s:Converter for ignoring the results of a parsed expression.cCsgS(N((R�R:R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�n scCs|S(N((R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�q s(R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR&l s cBs)eZdZd�Zd�Zd�ZRS(s?Wrapper for parse actions, to ensure they are only called once.cCst|�|_t|_dS(N(RPtcallableR�tcalled(R�t methodCall((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�w scCsA|js+|j|||�}t|_|St||d��dS(NR�(R�R�R�R(R�R~RCRkR]((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�z s   cCs t|_dS(N(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytreset� s(R�R�R�R�R�R�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRu s  csCt����fd�}y�j|_Wntk r>nX|S(s&Decorator for debugging parse actions.cs��j}|d\}}}t|�dkrI|djjd|}ntjjd|t||�||f�y�|�}Wn0tk r�}tjjd||f��nXtjjd||f�|S(Ni����iit.s">>entering %s(line: '%s', %d, %s) s<<leaving %s (exception: %s) s<<leaving %s (ret: %s) ( t func_nameR�R�R�RrtstderrtwriteRBR�(tpaArgstthisFuncR~RCRkRwRA(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytz� s )(RPR�R�(R�R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR]� s   t,cCsxt|�dt|�dt|�d}|rSt|t||��j|�S|tt|�|�j|�SdS(s�Helper to define a delimited list of expressions - the delimiter defaults to ','. By default, the list elements and delimiters can have intervening whitespace, and comments, but this can be overridden by passing C{combine=True} in the constructor. If C{combine} is set to C{True}, the matching tokens are returned as a single token string, with the delimiters included; otherwise, the matching tokens are returned as a list of tokens, with the delimiters suppressed. s [R�s]...N(RyRR-RmR&(R;tdelimtcombinetdlName((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR;� s,!cs�t����fd�}|dkrBtt�jd��}n |j�}|jd�|j|dt�|�jdt ��d�S(sCHelper to define a counted list of expressions. This helper defines a pattern of the form:: integer expr expr expr... where the leading integer tells how many expr expressions follow. The matched tokens returns the array of expr tokens as a list - the leading count token is suppressed. cs;|d}�|r,tt�g|��p5tt�>gS(Ni(R RR>(R~RCRkR�(t arrayExprR;(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytcountFieldParseAction� s -cSst|d�S(Ni(Rj(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� starrayLenRis(len) s...N( R R�R*RMRtR�RmR~R�Ry(R;tintExprR�((R�R;s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR7� s    cCsMg}x@|D]8}t|t�r8|jt|��q |j|�q W|S(N(RmR�R�R�R�(tLRwR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s  csFt���fd�}|j|dt��jdt|���S(s?Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:: first = Word(nums) second = matchPreviousLiteral(first) matchExpr = first + ":" + second will match C{"1:1"}, but not C{"1:2"}. Because this matches a previous literal, will also match the leading C{"1:1"} in C{"1:10"}. If this is not desired, use C{matchPreviousExpr}. Do *not* use with packrat parsing enabled. csc|rTt|�dkr'�|d>q_t|j��}�td�|D��>n �t�>dS(Niicss|]}t|�VqdS(N(R(Rzttt((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� s(R�R�R�RR(R~RCRkttflat(trep(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytcopyTokenToRepeater� s Ris(prev) (R R~R�RmRy(R;R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRJ� s  cs\t��|j�}�|K��fd�}|j|dt��jdt|���S(sjHelper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:: first = Word(nums) second = matchPreviousExpr(first) matchExpr = first + ":" + second will match C{"1:1"}, but not C{"1:2"}. Because this matches by expressions, will *not* match the leading C{"1:1"} in C{"1:10"}; the expressions are evaluated first, and then compared, so C{"1"} is compared with C{"10"}. Do *not* use with packrat parsing enabled. cs8t|j����fd�}�j|dt�dS(Ncs7t|j��}|�kr3tddd��ndS(NR�i(R�R�R(R~RCRkt theseTokens(t matchTokens(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytmustMatchTheseTokens� s Ri(R�R�RtR�(R~RCRkR�(R�(R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� sRis(prev) (R R�R~R�RmRy(R;te2R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRI� s   cCsUx$dD]}|j|t|�}qW|jdd�}|jdd�}t|�S(Ns\^-]s s\ns s\t(R�t_bslashRy(R~R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR� s  c sY|r!d�}d�}t�nd�}d�}t�g}t|t�r]|j�}nVt|tj�rt|�}n4t|t�r�t|�}nt j dt dd�|s�t �Sd}x�|t |�d kru||}x�t||d �D]f\}} || |�r,|||d =Pq�||| �r�|||d =|j|| �| }Pq�q�W|d 7}q�W| r-|r-y�t |�t d j|��kr�td d jd �|D���jd j|��Stdjd�|D���jd j|��SWq-t j dt dd�q-Xnt�fd�|D��jd j|��S(srHelper to quickly define a set of alternative Literals, and makes sure to do longest-first testing when there is a conflict, regardless of the input order, but returns a C{L{MatchFirst}} for best performance. Parameters: - strs - a string of space-delimited literals, or a list of string literals - caseless - (default=False) - treat all literals as caseless - useRegex - (default=True) - as an optimization, will generate a Regex object; otherwise, will generate a C{MatchFirst} object (if C{caseless=True}, or if creating a C{Regex} raises an exception) cSs|j�|j�kS(N(R�(Rtb((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl scSs|j�j|j��S(N(R�R�(RR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl scSs ||kS(N((RR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl scSs |j|�S(N(R�(RR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl ss2Invalid argument to oneOf, expected string or listR�iiiR�s[%s]css|]}t|�VqdS(N(R(Rztsym((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>: ss | t|css|]}tj|�VqdS(N(RgR(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>< ss7Exception creating Regex for oneOf, building MatchFirstc3s|]}�|�VqdS(N((RzR�(tparseElementClass(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>C s(RRRmR�RR9R:R�R�R�R�R�RR�R�R�R�R"RmR( tstrsR�tuseRegextisequaltmaskstsymbolsR�tcurR�R((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRN sP         ! !33 cCsttt||���S(s�Helper to easily and clearly define a dictionary by specifying the respective patterns for the key and value. Takes care of defining the C{L{Dict}}, C{L{ZeroOrMore}}, and C{L{Group}} tokens in the proper order. The key pattern can include delimiting markers or punctuation, as long as they are suppressed, thereby leaving the significant key text. The value pattern can include named results, so that the C{Dict} results can include named token fields. (RR-R (R�R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR<E scCspt�jd��}|j�}t|_|d�||d�}|rVd�}n d�}|j|�|S(sBHelper to return the original, untokenized text for a given expression. Useful to restore the parsed fields of an HTML start tag into the raw tag text itself, or to revert separate tokens with intervening whitespace back to the original matching input text. By default, returns astring containing the original parsed text. If the optional C{asString} argument is passed as C{False}, then the return value is a C{L{ParseResults}} containing any results names that were originally matched, and a single token containing the original matched text from the input string. So if the expression passed to C{L{originalTextFor}} contains expressions with defined results names, you must set C{asString} to C{False} if you want to preserve those results name values.cSs|S(N((R~R�Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl[ st_original_startt _original_endcSs||j|j!S(N(R�R�(R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl` scSs'||jd�|jd�!g|(dS(NR�R�(R�(R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt extractTextb s(RRtR�R�Rh(R;tasStringt locMarkert endlocMarkert matchExprR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRbO s      cCst|�jd��S(siHelper to undo pyparsing's default grouping of And expressions, even if all but one are non-empty.cSs|dS(Ni((Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRlj s(R(Rt(R;((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRcg scCsEt�jd��}t|d�|d�|j�j�d��S(s�Helper to decorate a returned token with its starting and ending locations in the input string. This helper adds the following results names: - locn_start = location where matched expression begins - locn_end = location where matched expression ends - value = the actual parsed results Be careful if the input text contains C{<TAB>} characters, you may want to call C{L{ParserElement.parseWithTabs}} cSs|S(N((R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRlv st locn_startR�tlocn_end(RRtR R�R�(R;tlocator((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRel s s\[]-*.$+^?()~ R cCs |ddS(Nii((R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� ss\\0?[xX][0-9a-fA-F]+cCs tt|djd�d��S(Nis\0xi(tunichrRjtlstrip(R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� ss \\0[0-7]+cCstt|ddd��S(Niii(R�Rj(R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� sR�s\]s\wR=R R�tnegatetbodyR csEd��y-dj�fd�tj|�jD��SWndSXdS(s�Helper to easily define string ranges for use in Word construction. Borrows syntax from regexp '[]' string range definitions:: srange("[0-9]") -> "0123456789" srange("[a-z]") -> "abcdefghijklmnopqrstuvwxyz" srange("[a-z$_]") -> "abcdefghijklmnopqrstuvwxyz$_" The input string must be enclosed in []'s, and the returned string is the expanded character set joined into a single string. The values enclosed in the []'s may be:: a single character an escaped character with a leading backslash (such as \- or \]) an escaped hex character with a leading '\x' (\x21, which is a '!' character) (\0x## is also supported for backwards compatibility) an escaped octal character with a leading '\0' (\041, which is a '!' character) a range of any of the above, separated by a dash ('a-z', etc.) any combination of the above ('aeiouy', 'a-zA-Z0-9_$', etc.) cSsKt|t�s|Sdjd�tt|d�t|d�d�D��S(NR�css|]}t|�VqdS(N(R�(RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� sii(RmRR�R�tord(tp((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� sR�c3s|]}�|�VqdS(N((Rztpart(t _expanded(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� sN(R�t_reBracketExprR�R�(R~((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRZ� s  -cs�fd�}|S(srHelper method for defining parse actions that require matching at a specific column in the input text. cs2t||��kr.t||d���ndS(Nsmatched token not at column %d(R4R(R5tlocnR?(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt verifyCol� s((R�R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRH� scs �fd�S(s�Helper method for common parse actions that simply return a literal value. Especially useful when used with C{L{transformString<ParserElement.transformString>}()}. cs�gS(N((R~RCRk(treplStr(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� s((R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRW� scCs|ddd!S(s�Helper parse action for removing quotation marks from parsed quoted strings. To use, add this parse action to quoted string using:: quotedString.setParseAction( removeQuotes ) iii����((R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRU� scCs&gtt|�D]}|j�^qS(s4Helper parse action to convert tokens to upper case.(R|RyR�(R~RCRkR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR_� scCs&gtt|�D]}|j�^qS(s4Helper parse action to convert tokens to lower case.(R|Rytlower(R~RCRkR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR=� scCs<t|t�r+|}t|d| �}n |j}tttd�}|r�tj�j t �}t d�|d�t t t|t d�|���tddtg�jd�j d ��t d �}n�d jd �tD��}tj�j t �t|�B}t d�|d�t t t|j t�tt d�|����tddtg�jd�j d ��t d �}ttd�|d �}|jdd j|jdd�j�j���jd|�}|jdd j|jdd�j�j���jd|�}||_||_||fS(sRInternal helper to construct opening and closing tag expressions, given a tag nameR�s_-:Rttagt=t/R�R>cSs|ddkS(NiR�((R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� sRR�css!|]}|dkr|VqdS(RN((RzR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pys <genexpr>� scSs|ddkS(NiR�((R~RCRk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl� ss</Rt:R�s<%s>R s</%s>(RmR�R R�R*R/R.R9R�RtRUR&RR-R RR�RqR�RQRTR=Rt_LR�ttitleRRmR�(ttagStrtxmltresnamet tagAttrNamet tagAttrValuetopenTagtprintablesLessRAbracktcloseTag((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt _makeTags� s" o{AA  cCs t|t�S(sRHelper to construct opening and closing tag expressions for HTML, given a tag name(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRF� scCs t|t�S(sQHelper to construct opening and closing tag expressions for XML, given a tag name(R�R�(R�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRG� scsT|r|�n |j��g�D]\}}||f^q#��fd�}|S(srHelper to create a validating parse action to be used with start tags created with C{L{makeXMLTags}} or C{L{makeHTMLTags}}. Use C{withAttribute} to qualify a starting tag with a required attribute value, to avoid false matches on common tags such as C{<TD>} or C{<DIV>}. Call C{withAttribute} with a series of attribute names and values. Specify the list of filter attributes names and values as: - keyword arguments, as in C{(align="right")}, or - as an explicit dict with C{**} operator, when an attribute name is also a Python reserved word, as in C{**{"class":"Customer", "align":"right"}} - a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") ) For attribute names with a namespace prefix, you must use the second form. Attribute names are matched insensitive to upper/lower case. If just testing for C{class} (with or without a namespace), use C{L{withClass}}. To verify that the attribute exists, but without specifying a value, pass C{withAttribute.ANY_VALUE} as the value. c s�x~�D]v\}}||kr8t||d|��n|tjkr|||krt||d||||f��qqWdS(Nsno matching attribute s+attribute '%s' has value '%s', must be '%s'(RR`t ANY_VALUE(R~RCR�tattrNamet attrValue(tattrs(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR�� s   (R�(R�tattrDictR�R�R�((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyR`� s   %cCs'|rd|nd}ti||6�S(s�Simplified version of C{L{withAttribute}} when matching on a div class - made difficult because C{class} is a reserved word in Python. s%s:classtclass(R`(t classnamet namespacet classattr((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRfst(RcCs<t�}||||B}xt|�D]\}}|d d \}} } } | dkrdd|nd|} | dkr�|d ks�t|�dkr�td��n|\} }nt�j| �}| tjkr�| dkr t||�t |t |��}q�| dkrx|d k rQt|||�t |t ||��}q�t||�t |t |��}q�| dkr�t|| |||�t || |||�}q�td��n+| tj kr�| dkr)t |t �st |�}nt|j|�t ||�}q�| dkr�|d k rpt|||�t |t ||��}q�t||�t |t |��}q�| dkr�t|| |||�t || |||�}q�td��n td ��| r |j| �n||j| �|BK}|}q(W||K}|S( s�Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression representing the most basic element for the nested - opList - list of tuples, one for each operator precedence level in the expression grammar; each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where: - opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal; if numTerms is 3, opExpr is a tuple of two expressions, for the two operators separating the 3 terms - numTerms is the number of terms for this operator (must be 1, 2, or 3) - rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants C{opAssoc.RIGHT} and C{opAssoc.LEFT}. - parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted) - lpar - expression for matching left-parentheses (default=Suppress('(')) - rpar - expression for matching right-parentheses (default=Suppress(')')) iis%s terms %s%s termis@if numterms=3, opExpr must be a tuple or list of two expressionsis6operator must be unary (1), binary (2), or ternary (3)s2operator must indicate right or left associativityN(N(R R�R�R�R�RmROtLEFTR R RtRIGHTRmRR;Rt(tbaseExprtopListtlpartrparRwtlastExprR�toperDeftopExprtaritytrightLeftAssocR�ttermNametopExpr1topExpr2tthisExprR�((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRdsR    '  /'   $  /'     s4"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|(?:\\.))*"s string enclosed in double quotess4'(?:[^'\n\r\\]|(?:'')|(?:\\x[0-9a-fA-F]+)|(?:\\.))*'s string enclosed in single quotessq(?:"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|(?:\\.))*")|(?:'(?:[^'\n\r\\]|(?:'')|(?:\\x[0-9a-fA-F]+)|(?:\\.))*')s*quotedString using single or double quotestusunicode string literalc Cs!||krtd��n|d kr�t|t�rt|t�rt|�dkr�t|�dkr�|d k r�tt|t||tj dd���j d��}q|t j �t||tj �j d��}q�|d k r9tt|t |�t |�ttj dd���j d��}q�ttt |�t |�ttj dd���j d��}q�td��nt�}|d k r�|tt|�t||B|B�t|��K}n.|tt|�t||B�t|��K}|jd ||f�|S( s�Helper method for defining nested lists enclosed in opening and closing delimiters ("(" and ")" are the default). Parameters: - opener - opening character for a nested list (default="("); can also be a pyparsing expression - closer - closing character for a nested list (default=")"); can also be a pyparsing expression - content - expression for items within the nested lists (default=None) - ignoreExpr - expression for ignoring opening and closing delimiters (default=quotedString) If an expression is not provided for the content argument, the nested expression will capture all whitespace-delimited content between delimiters as a list of separate values. Use the C{ignoreExpr} argument to define expressions that may contain opening or closing characters that should not be treated as opening or closing characters for nesting, such as quotedString or a comment expression. Specify multiple expressions using an C{L{Or}} or C{L{MatchFirst}}. The default is L{quotedString}, but if no expressions are to be ignored, then pass C{None} for this argument. s.opening and closing strings cannot be the sameiR cSs|dj�S(Ni(R�(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl}scSs|dj�S(Ni(R�(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl�scSs|dj�S(Ni(R�(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl�scSs|dj�S(Ni(R�(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRl�ssOopening and closing arguments must be strings if no content expression is givensnested %s%s expressionN(R�R�RmR�R�RRRRRQRtR>R�RR R R&R-Rm(topenertclosertcontentRkRw((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRK`s4  $  $    5.c s5�fd�}�fd�}�fd�}tt�jd�j��}t�t�j|�jd�}t�j|�jd�}t�j|�jd�} |r�tt|�|t|t|�t|��| �} n0tt|�t|t|�t|���} |j t t��| jd�S( s�Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code. Parameters: - blockStatementExpr - expression defining syntax of statement that is repeated within the indented block - indentStack - list created by caller to manage indentation stack (multiple statementWithIndentedBlock expressions within a single grammar should share a common indentStack) - indent - boolean indicating whether block must be indented beyond the the current level; set to False for block of left-most statements (default=True) A valid block must contain at least one C{blockStatement}. css|t|�krdSt||�}|�dkro|�dkrZt||d��nt||d��ndS(Ni����sillegal nestingsnot a peer entry(R�R4RR(R~RCRktcurCol(t indentStack(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytcheckPeerIndent�scsEt||�}|�dkr/�j|�nt||d��dS(Ni����snot a subentry(R4R�R(R~RCRkR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pytcheckSubIndent�scsn|t|�krdSt||�}�oH|�dkoH|�dks`t||d��n�j�dS(Ni����i����snot an unindent(R�R4RR�(R~RCRkR�(R�(s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt checkUnindent�s &s tINDENTR�tUNINDENTsindented block( RRR�R�RRtRmR RR�R�( tblockStatementExprR�RR�R�R�R,R�tPEERtUNDENTtsmExpr((R�s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRa�s"8 $s#[\0xc0-\0xd6\0xd8-\0xf6\0xf8-\0xff]s[\0xa1-\0xbf\0xd7\0xf7]s_:sany tagsgt lt amp nbsp quot aposs><& "'s &(?P<entity>R�s);scommon HTML entitycCstj|j�S(sRHelper parser action to replace common HTML entities with their special characters(t_htmlEntityMapR�tentity(Rk((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyRV�ss/\*(?:[^*]*\*+)+?/sC style comments<!--[\s\S]*?-->s HTML comments.*s rest of lines \/\/(\\\n|.)*s // comments:/(?:\*(?:[^*]*\*+)+?/|/[^\n]*(?:\n[^\n]*)*?(?:(?<!\\)|\Z))sC++ style comments#.*sPython style comments t commaItemR�t__main__tselecttfroms_$R�R�tcolumnsttablesRns� SELECT * from XYZZY, ABC select * from SYS.XYZZY Select A from Sys.dual Select AA,BB,CC from Sys.dual Select A, B, C from Sys.dual Select A, B, C from Sys.dual Xelect A, B, C from Sys.dual Select A, B, C frox Sys.dual Select Select ^^^ frox Sys.dual Select A, B, C from Sys.dual, Table2(�R�t __version__t__versionTime__t __author__R�tweakrefRR�R�RrR�RgRR9R-t functoolst itertoolsRFt__all__tversionR�RtmaxsizeR�RoR�tchrR�RytsumR�R(treversedR�R�R�R*R;RR ROtmaxinttxrangeR�t __builtin__RtfnameR�tgetattrR�R�R�R�R�R�tascii_uppercasetascii_lowercaseR/RMR?R.R�R�t printableRQR�RRRRR!R�RtMutableMappingtregisterR4RERBR<R@RBRLRPRR'RRRR�RTR RRR*R"R RR)R2R RRR%R$R,R+RRRRRRR RRR-RiRjRR#R RyR(RR RR&RR]R�R;R�R7R�RJRIRR�RNR<RbRcReRmR>RDRCR\R[Rtt _escapedPunct_escapedHexChart_escapedOctChartUNICODEt _singleChart _charRangeRqR�RZRHRWRUR_R=R�RFRGR`R�RfROR�R�RdRPR9RYRTR^RKRaR0RRR2R1R�R�R�R�R6RVR3R@R�RXR:R8RARSR�t _commasepitemR5R�t selectTokent fromTokentidentt columnNametcolumnNameListt tableNamet tableNameListt simpleSQLR�(((s9/usr/lib/python2.7/site-packages/pip/_vendor/pyparsing.pyt<module>:s�            *         /  ��     ���"   8 |@|>1 mBF8UH; $IM  "      @   !4@         !     I%5 4  (, 8+