Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
ldap
/
schema
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/ldap/schema/tokenizer.pyc
m 9oCc @ s d Z d Z d Z d S( s ldap.schema.tokenizer - Low-level parsing functions for schema element strings written by Michael Stroeder <michael@stroeder.com> See http://python-ldap.sourceforge.net for details. \$Id: tokenizer.py,v 1.10 2005/09/22 04:26:12 stroeder Exp $ c C s g } | i } t | } d } x| | j o| } x | | j o | | d j o | | d j p | | d j oD | | j o | | | | ! n | | | | d 7} | } q: | | d j o\ | | j o | | | | ! n x- | | j o | | d j o | d 7} q W| } q: | d 7} q: W| | j o | | | | ! n | d 7} | | j o Pn | } x- | | j o | | d j o | d 7} qW| | j o | | | | ! n | d 7} q$ W| S( sH Returns list of syntax elements with quotes and spaces stripped. i t 't (t )i t N( t resultt appendt result_appendt lent st s_lent it start( R t keywordDictR R R R R ( ( t9 /usr/lib/python2.4/site-packages/ldap/schema/tokenizer.pyt split_tokens sJ " c C s | d i d j o | d i d j p t t | h } | i } | i | d } t | } x| | j o| | | o | | } | d 7} | | j o | | | o f | | <qn| | d j oq | d 7} | } x- | | j o | | d j o | d 7} q Wt t d | | | ! | | <| d 7} qn| | f | | <| d 7} q|qo | d 7} qo W| S( s8 Returns dictionary of known tokens with all values i R iR i c C s | d j S( Nt $( t v( R ( ( R t <lambda>L s N( t lt stript AssertionErrort ValueErrorR t has_keyt result_has_keyt updatet known_tokensR R t l_lent tokenR t tuplet filter( R R R R R R R R ( ( R t extract_tokens4 s6 > #N( t __doc__R R ( R R ( ( R t ? s )