@staticmethod
    def _normalize_expectations(channel_id, expectations):
        if isinstance(expectations, list):
            output = list()
            for value in expectations:
                if isinstance(value, str):
                    output.append('%i:%s' % (channel_id, value))
                else:
                    output.append('%i:%s' % (channel_id, value.name))
            return output
        elif utils.is_string(expectations):
            return ['%i:%s' % (channel_id, expectations)]
        return ['%i:%s' % (channel_id, expectations.name)]
Start a transaction explicitly in autocommit mode.
dataset/ETHPy150Open gmr/rabbitpy/rabbitpy/connection.py/Connection._normalize_expectations--crossover with--dataset/ETHPy150Open django/django/django/db/backends/sqlite3/base.py/DatabaseWrapper._start_transaction_under_autocommit