petehunt/PyMySQL — pull request #135 by ossmkitty (2012-12-05 14:40:05+00:00)
Title: Fix __init__.py syntax error and importing under Python 2.7

Commit 050d0df65ba35521b98e353961d0cfbf77a482fb introduced a syntax error:

Running setup.py egg_info for package PyMySQL
Traceback (most recent call last):
File "", line 16, in
File "/Volumes/Shared/Users/testing/VirtualEnvs/nti.dataserver/src/pymysql/setup.py", line 25, in
version_tuple = __import__('pymysql').VERSION
File "pymysql/__init__.py", line 97
information about defaults""".
^
SyntaxError: invalid syntax

This fixes that error by moving the closing period inside the string. It also introduced a bad import:

Traceback (most recent call last):
File "./setup.py", line 25, in
version_tuple = __import__('pymysql').VERSION
File "/Users/jmadden/tmp/PyMySQL/pymysql/__init__.py", line 95, in
import connections.Connection as _orig_conn
ImportError: No module named Connection

This replaces `import connections.Connection as _orig_conn` with `from pymysql import connections as _orig_conn` to correct the ImportError