/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/integration/utils/__init__.py
15 строк
430 B
Daniel A. Wozniak
Pyupgrade and drop six
06 июл 2021, 16:04
06 июл 2021, 16:04
d9b5065
Код
Авторство
О чём код?
""" Some utils functions to be used throughout the integration test files. """ def decode_byte_list(byte_list): """ Helper function that takes a list of byte strings and decodes each item according to the __salt_system_encoding__ value. Returns a list of strings. """ decoded_items = [] for item in byte_list: decoded_items.append(item.decode(__salt_system_encoding__)) return decoded_items