Fix py3 wart (chr vs bytesstring)

This commit is contained in:
Daniel A. Wozniak 2018-04-14 17:39:29 -07:00
parent e8acca01c2
commit 444da3f893
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -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")