mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removed regex compilation
This commit is contained in:
parent
f29815b49b
commit
d3e8679e05
1 changed files with 1 additions and 2 deletions
|
@ -1763,8 +1763,7 @@ def _set_line_indent(src, line, indent):
|
|||
|
||||
|
||||
def _get_eol(line):
|
||||
compiled = re.compile('((?<!\r)\n|\r(?!\n)|\r\n)$')
|
||||
match = compiled.search(line)
|
||||
match = re.search('((?<!\r)\n|\r(?!\n)|\r\n)$', line)
|
||||
return match and match.group() or ''
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue