(self, buf)
return all_fields
Split  fields, used in the web authentication
Split  fields, used in the web authentication
Split fields used in the web authentication
def _split_fields(self, buf):
        """Split  fields, used in the web authentication"""
        all_fields = dict()
        for field in buf.split(','):
            pair = field.split('=', 1)
            if len(pair) == 2:
                all_fields[pair[0]] = pair[1].strip('"')
        return all_fields
def _split_fields ( self , buf ) : all_fields = dict ( ) for field in buf . split ( ',' ) : pair = field . split ( '=' , 1 ) if len ( pair ) == 2 : all_fields [ pair [ 0 ] ] = pair [ 1 ] . strip ( '"' ) return all_fields