def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='utf-8', encoding_errors='strict', decode_responses=False, retry_on_timeout=False, parser_class=DefaultParser, socket_read_size=65536):
    self.pid = os.getpid()
    self.path = path
    self.db = db
    self.password = password
    self.socket_timeout = socket_timeout
    self.retry_on_timeout = retry_on_timeout
    self.encoding = encoding
    self.encoding_errors = encoding_errors
    self.decode_responses = decode_responses
    self._sock = None
    self._parser = parser_class(socket_read_size=socket_read_size)
    self._description_args = {'path': self.path, 'db': self.db}
    self._connect_callbacks = []
def __init__(self, path=, db=0, password=None, socket_timeout=None, encoding='utf-8', encoding_errors='strict', decode_responses=False, retry_on_timeout=False, parser_class=DefaultParser, socket_read_size=65536):
    self.pid = os.getpid()
    self.path = path
    self.db = db
    self.password = password
    self.socket_timeout = socket_timeout
    self.retry_on_timeout = retry_on_timeout
    self.encoding = encoding
    self.encoding_errors = encoding_errors
    self.decode_responses = decode_responses
    self._sock = None
    self._parser = parser_class(socket_read_size=socket_read_size)
    self._description_args = {'path': self.path, 'db': self.db}
    self._connect_callbacks = []