[Teammetrics-discuss] Error in liststat.py

Sukhbir Singh sukhbir.in at gmail.com
Sat Aug 6 12:52:06 UTC 2011

$ cat /var/log/teammetrics/liststat.log | grep Invalid
2011-08-06 16:02:27,204 WARNING: Invalid Subject encoding

So the problem was there only in one single message :) I have handled
this and all is well now.

Surprisingly, the code worked well on Python 2.7! Here is the `diff`
between 2.6 and 2.7:

    -    return re.sub(r'=\w{2}', _unquote_match, s)
    +    return re.sub(r'=[a-fA-F0-9]{2}', _unquote_match, s)

That explains it ;)

More information about the Teammetrics-discuss mailing list