'Format a string in this utility code with context. If None, do nothing.'

def none_or_sub(self, s, context):

    if (s is None):
        return None
    return sub_tempita(s, context, self.file, self.name)
