diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-25 23:27:07 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-25 23:27:07 (GMT) |
commit | adc93b9499cc04c41499c313a08b45ea34606e21 (patch) | |
tree | f56cd8c5f6fda919b9eba0335c8021b59b95e978 | |
parent | 7fb00ad1bed5742680886674ca8564c7838a360c (diff) | |
download | cpython-adc93b9499cc04c41499c313a08b45ea34606e21.zip cpython-adc93b9499cc04c41499c313a08b45ea34606e21.tar.gz cpython-adc93b9499cc04c41499c313a08b45ea34606e21.tar.bz2 |
don't use a catch-all
-rwxr-xr-x | Tools/scripts/findnocoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/findnocoding.py b/Tools/scripts/findnocoding.py index 537f0a1..e49fc42 100755 --- a/Tools/scripts/findnocoding.py +++ b/Tools/scripts/findnocoding.py @@ -12,7 +12,7 @@ import sys, os, re, getopt # our pysource module finds Python source files try: import pysource -except: +except ImportError: # emulate the module with a simple os.walk class pysource: has_python_ext = looks_like_python = can_be_compiled = None |