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 a1an
Recipients a1an, flox
Date 2011-11-18.12:57:17
SpamBayes Score 3.150777e-05
Marked as misclassified No
Message-id <1321621037.87.0.241345185958.issue13427@psf.upfronthosting.co.za>
In-reply-to
Content
Using repr highlights the issue which lies in the behaviour of str.strip() which does not strip away null spaces as I would have expected:

' 'utm10\x00' ' == ' 'utm10' '
not equal

Changing the code to:
currColl=line.split(":")[1].strip().strip("\0")

works but I think strip() should already do that by default, shouldn't it?
History
Date User Action Args
2011-11-18 12:57:17a1ansetrecipients: + a1an, flox
2011-11-18 12:57:17a1ansetmessageid: <1321621037.87.0.241345185958.issue13427@psf.upfronthosting.co.za>
2011-11-18 12:57:17a1anlinkissue13427 messages
2011-11-18 12:57:17a1ancreate