def encode_contents(
        self, indent_level=None, encoding=DEFAULT_OUTPUT_ENCODING,
        formatter="minimal"):
        contents = self.decode_contents(indent_level, encoding, formatter)
        return contents.encode(encoding)

    # Old method for BS3 compatibility
Type: Flow or Auxiliary
dataset/ETHPy150Open socketubs/pyhn/pyhn/lib/bs4_py3/element.py/Tag.encode_contents--crossover with--dataset/ETHPy150Open JamesPHoughton/pysd/tests/test-models-master/tests/input_functions/test_inputs.py/saveper