summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-02-17 17:53:45 +0000
committerphillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771>2007-02-17 17:53:45 +0000
commit498cb2526e714521dd1b13a013c330f68f95f4d4 (patch)
tree8af70c5f21918e95696a5338e4cca23bc183f6b6 /setuptools/command
parentd4e5574708b1acb586e51209e31aa82ab3d9d4bf (diff)
downloadpython-setuptools-498cb2526e714521dd1b13a013c330f68f95f4d4.tar.gz
Fix error if script contains null byte.
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@53813 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 4609810..8228777 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1460,7 +1460,7 @@ def is_python(text, filename='<string>'):
"Is this string a valid Python script?"
try:
compile(text, filename, 'exec')
- except SyntaxError:
+ except (SyntaxError, TypeError):
return False
else:
return True