I'm using the following to write a value to a field.
arcpy.CalculateField_management (newPha, "PHACODE", """'{}'""".format(name), "PYTHON_9.3")
The only problem is that the string I'm attempting to write to the table has an apostrophe. (ex. "Saint Anne's Bay").
The single quote is clearly throwing off the expression, but the triple-double quote solution isn't working. Any ideas on how to deal with this???