mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
17 lines
454 B
Python
17 lines
454 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
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
|