'Prepare a quoted table and schema name.'

def format_table(self, table, use_schema=True, name=None):

    if (name is None):
        name = table.name
    result = self.quote(name)
    if ((not self.omit_schema) and use_schema and getattr(table, 'schema', None)):
        result = ((self.quote_schema(table.schema) + '.') + result)
    return result
