Created
March 13, 2013 07:31
-
-
Save daeken/5149992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from os.path import isfile | |
| from glob import glob | |
| for fn in glob('*'): | |
| if not isfile(fn): | |
| continue | |
| try: | |
| file(fn, 'rb').read().decode('utf-8') | |
| except UnicodeDecodeError: | |
| print fn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment