From 2b28f4f0514626b9a0eaca4b309b5a53147003c5 Mon Sep 17 00:00:00 2001 From: Morgan Courbet Date: Thu, 29 Jun 2017 21:42:19 +0200 Subject: [PATCH] Rename variable names --- pre_commit_hooks/mixed_line_ending.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pre_commit_hooks/mixed_line_ending.py b/pre_commit_hooks/mixed_line_ending.py index b116f50..59d78ed 100644 --- a/pre_commit_hooks/mixed_line_ending.py +++ b/pre_commit_hooks/mixed_line_ending.py @@ -6,28 +6,23 @@ import sys from enum import Enum -class CLIOption(Enum): - def __init__(self, optName): - self.optName = optName - - -class LineEnding(CLIOption): +class LineEnding(Enum): CR = '\r', '\\r', 'cr', re.compile(r'\r', re.DOTALL) CRLF = '\r\n', '\\r\\n', 'crlf', re.compile(r'\r\n', re.DOTALL) LF = '\n', '\\n', 'lf', re.compile(r'(?