code: def set_stop_chars(self, stop_chars):
          
  
          warnings.warn("Method set_stop_chars is deprecated, "
                        "use `set_stop_chars_left` or "
                        "`set_stop_chars_right` instead", DeprecationWarning)
          self._stop_chars = set(stop_chars)
          self._stop_chars_left = self._stop_chars
          self._stop_chars_right = self._stop_chars
docs: Set stop characters used when determining end of URL.
  
          .. deprecated:: 0.7
              Use :func:`set_stop_chars_left` or :func:`set_stop_chars_right`
              instead.
  
          :param list stop_chars: list of characters