def valid_comment_keypath(self):
        """Adding a comment to every value that looks like a global id
        is incorrect in the improbable case that e.g. a file is named exactly as
        a global id that exists in the same project.
        """
        k = self.keypath
        if k[0] == 'objects':
            if len(k) == 2:
                return True
            elif 3 >= len(k):
                path = [self.get_isa(self.objects.get(x)) or x for x in k[1:]]
                kp = '.'.join(path)
                return kp in self.commentpaths
        # The only other commented keypath is the rootObject.
        return k == ['rootObject']
dataset/ETHPy150Open mikr/xcodeprojer/xcodeprojer.py/Unparser.valid_comment_keypath/swapped operands of `>=`