This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author d_everhart
Recipients
Date 2003-03-08.19:39:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
When site.addpackage(), running on a posix (e.g. 
cygwin or linux) system, reads lines from a .pth file that 
have '\r\n' line terminators, the carriage return character 
interferes with both the import operation and the 
directory appending operation.

The situation can arise, for example, when .pth files 
reside on a network directory that is shared between 
Windows and Posix installations and accessed by 
python interpreters running in both environments.

Suggested change:
replace site.py line 146:
        dir = f.readline()
with
        dir = f.readline().rstrip()
This change also eliminates the need for removing the 
newline at lines 154-155


History
Date User Action Args
2007-08-23 14:11:47adminlinkissue700055 messages
2007-08-23 14:11:47admincreate