I can't reproduce this either. A quick survey of Google results seems to indicate this can be a sign of a corrupted .pyc file. I'd recommend removing the .pyc files in /usr/lib/python2.6/dist-packages/yaml and then try again.
signature.asc
Description: This is a digitally signed message part.