def grantPrivileges(self):
        """
        Grants select-only privileges to a non-admin mysql user for the API to
        query with (safer).

        The Username for these privileges is pulled from the bookworm.cnf file.
        """
        import ConfigParser
        # This should be using the global configparser module, not the custom code here
        config = ConfigParser.ConfigParser(allow_no_value=True)
        config.read(["~/.my.cnf","/etc/my.cnf","/etc/mysql/my.cnf","bookworm.cnf"])
        username=config.get("client","user")
        password=config.get("client","password")
        self.db.query((self.dbname,username,password) % "GRANT SELECT ON %s.* TO '%s'@'localhost' IDENTIFIED BY '%s'")
dataset/ETHPy150Open Bookworm-project/BookwormDB/bookwormDB/CreateDatabase.py/BookwormSQLDatabase.grantPrivileges/swapped operands of `%`