Returns the patch with given uid.

        :param uid: Patch uid.
        :type uid: unicode
        :return: Patch.
        :rtype: Patch

def get_patch_from_uid(self, uid):
        """
        Returns the patch with given uid.

        :param uid: Patch uid.
        :type uid: unicode
        :return: Patch.
        :rtype: Patch
        """

        for name, patch in self:
            if patch.uid == uid:
                return patch