From e278ef8274431381b792b9808359a008f859be99 Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Mon, 15 May 2017 10:06:29 +0900 Subject: [PATCH] reformat --- bin/cchardetect | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/cchardetect b/bin/cchardetect index 3baaad0..2e8f34f 100755 --- a/bin/cchardetect +++ b/bin/cchardetect @@ -16,9 +16,17 @@ def read_chunks(f, chunk_size): def main(): parser = argparse.ArgumentParser() - parser.add_argument('files', nargs='*', help="Files to detect encoding of", type=argparse.FileType('rb'), default=[sys.stdin if PY2 else sys.stdin.buffer]) - parser.add_argument('--chunk-size', type=int, default=(256 * 1024)) - parser.add_argument('--version', action='version', version='%(prog)s {0}'.format(cchardet.__version__)) + parser.add_argument('files', + nargs='*', + help="Files to detect encoding of", + type=argparse.FileType('rb'), + default=[sys.stdin if PY2 else sys.stdin.buffer]) + parser.add_argument('--chunk-size', + type=int, + default=(256 * 1024)) + parser.add_argument('--version', + action='version', + version='%(prog)s {0}'.format(cchardet.__version__)) args = parser.parse_args() for f in args.files: