Removed regex compilation

This commit is contained in:
Jerzy Drozdz 2018-03-08 19:49:26 +01:00 committed by rallytime
parent f29815b49b
commit d3e8679e05
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -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 ''