(self, sql=None, urlenc=None)
Create container and parse either sql or urlenc string.
Create container and parse either sql or urlenc string.
Create container and parse either sql or urlenc string .
def __init__(self, sql=None, urlenc=None):
        """Create container and parse either sql or urlenc string."""

        self.attrs = {}
        if sql and urlenc:
            raise Exception("Both sql and urlenc set.")
        if urlenc:
            self.parse_urlenc(urlenc)
        elif sql:
            self.parse_sql(sql)
def __init__ ( self , sql = None , urlenc = None ) : self . attrs = { } if sql and urlenc : raise Exception ( "Both sql and urlenc set." ) if urlenc : self . parse_urlenc ( urlenc ) elif sql : self . parse_sql ( sql )