Always use unix line endings

This commit is contained in:
Daniel A. Wozniak 2018-07-30 18:29:03 +00:00
parent d5e60090bc
commit ce3ed43dab
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -68,9 +68,7 @@ class RootsTest(TestCase, AdaptedConfigurationTestCaseMixin, LoaderModuleMockMix
with salt.utils.files.fopen(full_path_to_file, 'rb') as s_fp:
with salt.utils.files.fopen(os.path.join(cls.tmp_dir, 'testfile'), 'wb') as d_fp:
for line in s_fp:
d_fp.write(
line.rstrip(b'\n').rstrip(b'\r') + os.linesep.encode('utf-8')
)
d_fp.write(line.rstrip(b'\n').rstrip(b'\r') + b'\n')
@classmethod
def tearDownClass(cls):