Message147867
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? |
|
Date |
User |
Action |
Args |
2011-11-18 12:57:17 | a1an | set | recipients:
+ a1an, flox |
2011-11-18 12:57:17 | a1an | set | messageid: <1321621037.87.0.241345185958.issue13427@psf.upfronthosting.co.za> |
2011-11-18 12:57:17 | a1an | link | issue13427 messages |
2011-11-18 12:57:17 | a1an | create | |
|