Revert diff newline change

This commit is contained in:
Daniel Wozniak 2018-09-28 17:06:36 -07:00
parent 2a901e960d
commit ed35633a1f
2 changed files with 2 additions and 6 deletions

View file

@ -558,8 +558,6 @@ def get_diff(a, b, *args, **kwargs):
with unicode on PY2.
'''
encoding = ('utf-8', 'latin-1', __salt_system_encoding__)
if 'lineterm' not in kwargs:
kwargs['lineterm'] = os.linesep
# Late import to avoid circular import
import salt.utils.data
return ''.join(

View file

@ -3755,10 +3755,8 @@ class BlockreplaceTest(ModuleCase, SaltReturnAssertsMixin):
pillar={'name': name},
)
log.error("ret = %s", repr(ret))
diff = dedent('''\
---
+++
@@ -0,0 +1,3 @@
diff = '--- \n+++ \n@@ -0,0 +1,3 @@\n'
diff += dedent('''\
+#-- start managed zone --
+äöü
+#-- end managed zone --