r53611 - sandbox/trunk/setuptools/setuptools/command/easy_install.py

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)
participants (1)
-
phillip.eby