Fix file open mode in cchardetect script
This commit is contained in:
parent
b5a00f7abe
commit
186fb86132
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ 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('r'))
|
||||
parser.add_argument('files', nargs='+', help="Files to detect encoding of", type=argparse.FileType('rb'))
|
||||
parser.add_argument('--chunk-size', type=int, default=(256 * 1024))
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in a new issue