-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cchardetect
CLI script
#30
Conversation
craigds
commented
May 9, 2017
Hi @craigds Thanks a lot!!!!!!!!!!!!!! I left a comment on code. Please check it. Thanks. |
bin/cchardetect
Outdated
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('files', nargs='+', help="Files to detect encoding of", type=argparse.FileType('r')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be argparse.FileType('rb')
because Python 3.x will not work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. fixed :)
@craigds. Thank you! |