<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compare_config(self):
 """Compare candidate config with running."""

        diff = self.device.cu.diff()

        if diff is None:
            return ''
        else:
            return diff.strip()