FSX/momoko — pull request #30 by swbrown (2012-09-10 20:12:31+00:00)
Title: Fix issue with psycopg 2.2.1 where it can't take a None factory.

On the version of psycopg2 on Squeeze (2.2.1), passing None as the connection_factory raises an exception. This changes it to not pass that argument at all when it's None.