mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Use six.text_type instead of str
This commit is contained in:
parent
1b12acd303
commit
4a19df1f7f
@ -583,8 +583,8 @@ def set_value(hive,
|
||||
# Check data type and cast to expected type
|
||||
# int will automatically become long on 64bit numbers
|
||||
# https://www.python.org/dev/peps/pep-0237/
|
||||
reg_type = {1: str, # REG_SZ
|
||||
2: str, # REG_EXPAND_SZ
|
||||
reg_type = {1: six.text_type, # REG_SZ
|
||||
2: six.text_type, # REG_EXPAND_SZ
|
||||
3: bin, # REG_BINARY
|
||||
4: int, # REG_DWORD
|
||||
7: list, # REG_MULTI_SZ
|
||||
|
Loading…
Reference in New Issue
Block a user