mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix py3 wart (chr vs bytesstring)
This commit is contained in:
parent
e8acca01c2
commit
444da3f893
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def trim_line_end(line):
|
|||
'''
|
||||
if line[-2:] == salt.utils.to_bytes('\r\n'):
|
||||
return line[:-2]
|
||||
elif line[-1] == salt.utils.to_bytes('\n'):
|
||||
elif line[-1:] == salt.utils.to_bytes('\n'):
|
||||
return line[:-1]
|
||||
raise Exception("Invalid line ending")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue