php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /usr/lib/python2.6/site-packages/yum/ |
files >> //usr/lib/python2.6/site-packages/yum/sqlutils.pyc |
[c @ s d Z y d d k Z Wn e j o d d k Z n Xd e f d YZ d d d d Z d Z d d Z d d Z e i d d j o e Z n e Z d Z d Z d S( s utility functions to handle differences in pysqlite versions These are from Wichert Akkerman <wichert@deephackmode.org>'s python-dhm http://www.wiggy.net/code/python-dhm iNt TokenizeErrorc B s e Z d Z RS( s Tokenizer error class( t __name__t __module__t __doc__( ( ( s0 /usr/lib/python2.6/site-packages/yum/sqlutils.pyR s s s "s \c C s | g d d f \ } } } } y?x8| o0| d | j o d } n| d j o | d | j o | d } n | d | j oY | d j o | | d 7} qM| i | d } x | d | j o | d } q Wnr | d | j o7 | d j o | d } n | | d 7} | d } n* | d j o | d } n | | d 7} | d } q$ WWn t j o t d n X| o t d n | d j o | i | n | S( s String tokenizer This function tokenizes a string while taking quotation and escaping into account. >>> import dhm.strtools >>> dhm.strtools.Tokenize("this is a test") ['this', 'is', 'a', 'test'] >>> dhm.strtools.Tokenize("this "is a" test") ['this', 'is a', 'test'] >>> dhm.strtools.Tokenize("this \"is\" a test") ['this', '"is"', 'a', 'test'] >>> dhm.strtools.Tokenize("this "is a test") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.2/site-packages/dhm/strtools.py", line 80, in Tokenize raise TokenizeError, "Unexpected end of string in quoted text" dhm.strtools.TokenizeError: Unexecpted end of string in quoted text @param str: string to tokenize @type str: string @param whitespace: whitespace characters seperating tokens @type whitespace: string @param quotes: legal quoting characters @type quotes: string @param escapes: characters which can escape quoting characters @type escapes: string @return: list of tokens @rtype: sequence of strings i i s Unexpected end of strings' Unexpected end of string in quoted textN( t Nonet appendt IndexErrorR ( t strt whitespacet quotest escapest buffert tokenst curtokent quote( ( s0 /usr/lib/python2.6/site-packages/yum/sqlutils.pyt Tokenize s@ c C s t | d d } g } d } x | D] } | i d o' | i | d d | | d 7} q% | i d p | i d o; | d d | } | | d 7} | i | | d 7} q% | i | q% Wh } d } x&