<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _reset_connection_attributes(self):
 """ Reset connection attributes. """

        self.connection = None
        self.encoding = None
        self._autojoin_channels = []
        self._reconnect_attempts = 0