Skip to content
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

Merged
merged 2 commits into from
May 15, 2017
Merged

Add cchardetect CLI script #30

merged 2 commits into from
May 15, 2017

Conversation

craigds
Copy link
Contributor

@craigds craigds commented May 9, 2017

boogie

@PyYoshi
Copy link
Owner

PyYoshi commented May 13, 2017

Hi @craigds

Thanks a lot!!!!!!!!!!!!!!

LGTM

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'))
Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. fixed :)

@PyYoshi
Copy link
Owner

PyYoshi commented May 15, 2017

@craigds. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants