[Python-checkins] r53611 - sandbox/trunk/setuptools/setuptools/command/easy_install.py
phillip.eby
python-checkins at python.org
Thu Feb 1 19:57:07 CET 2007
Author: phillip.eby
Date: Thu Feb 1 19:57:06 2007
New Revision: 53611
Modified:
sandbox/trunk/setuptools/setuptools/command/easy_install.py
Log:
Fixed mangling line endings when an old-style source script came from
Windows.
Modified: sandbox/trunk/setuptools/setuptools/command/easy_install.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/easy_install.py (original)
+++ sandbox/trunk/setuptools/setuptools/command/easy_install.py Thu Feb 1 19:57:06 2007
@@ -373,7 +373,7 @@
for script_name in dist.metadata_listdir('scripts'):
self.install_script(
dist, script_name,
- dist.get_metadata('scripts/'+script_name).replace('\r','\n')
+ '\n'.join(dist.get_metadata('scripts/'+script_name).splitlines())
)
self.install_wrapper_scripts(dist)
More information about the Python-checkins
mailing list