SyntaxError: Invalid Syntax.

ronrsr ronrsr at gmail.com
Fri Nov 10 12:01:39 EST 2006


no matter where I place this imported file,the statement after it in
the main program gets a syntax error, regardless of the syntax.

I think I may have changed something in this file, but I'm stuck.  Can
anyone help?

#!/usr/local/bin/python
# Copyright 2004 by Stephen Masterman

#Change the db connection details here.


import MySQLdb




def connect():


   return =  MySQLdb.connect (host = "db91x.xxxx.com",
                           user = "xxxx",
                            passwd = "xxxxx",
			db = "homebase_zingers"
                           );




More information about the Python-list mailing list