openid/python-openid — Issue #33: Missing import in openid.extension
Author: kilink
Created: 2012-02-28 18:12:31+00:00
State: open

This seemed too lightweight of an issue for a pull request, but the *toMessage* method of *openid.extension.Extension* references the *warnings* module without it having been imported.

Test case:

```Python
import openid.extension

ext = openid.extension.Extension()
ext.toMessage()
```

Even though this use of the method is deprecated, I consider it a bug.