petehunt/PyMySQL — pull request #91 by lamby (2011-12-07 14:44:23+00:00)
Title: Fix _result AttributeError on connect

We may not have a _result yet as it's setup in __init__ *after* set_charset

This avoids an AttributeError when connecting.

Alternatively we could reorder __init__ but the order "smells" deliberate
wrt character encodings so I'm playing it safe.

Signed-off-by: Chris Lamb