Remove _check_filenames in mixed_line_ending.py

This commit is contained in:
Morgan Courbet 2017-07-20 20:32:04 +02:00
parent 4d3d8e1831
commit f9915cbbe2
No known key found for this signature in database
GPG key ID: 467299D324A21B24
2 changed files with 0 additions and 14 deletions

View file

@ -1,5 +1,4 @@
import argparse
import os
import re
import sys
@ -56,8 +55,6 @@ def mixed_line_ending(argv=None):
filenames = options['filenames']
fix_option = options['fix']
_check_filenames(filenames)
if fix_option == MixedLineEndingOption.NO:
return _process_no_fix(filenames)
elif fix_option == MixedLineEndingOption.AUTO:
@ -92,12 +89,6 @@ def _parse_arguments(argv=None):
return options
def _check_filenames(filenames):
for filename in filenames:
if not os.path.isfile(filename):
raise IOError('The file "{}" does not exist'.format(filename))
def _detect_line_ending(filename):
with open(filename, 'rb') as f:
buf = f.read()