|
|
@ -17,7 +17,7 @@
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
import argparse
|
|
|
|
import io
|
|
|
|
import codecs
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import platform
|
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
@ -177,7 +177,7 @@ def run(argv=None):
|
|
|
|
for file in find_files_recursively(args.files, conf):
|
|
|
|
for file in find_files_recursively(args.files, conf):
|
|
|
|
filepath = file[2:] if file.startswith('./') else file
|
|
|
|
filepath = file[2:] if file.startswith('./') else file
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
with io.open(file, newline='') as f:
|
|
|
|
with codecs.open(file) as f:
|
|
|
|
problems = linter.run(f, conf, filepath)
|
|
|
|
problems = linter.run(f, conf, filepath)
|
|
|
|
except EnvironmentError as e:
|
|
|
|
except EnvironmentError as e:
|
|
|
|
print(e, file=sys.stderr)
|
|
|
|
print(e, file=sys.stderr)
|
|
|
|