def _associate_dests_to_pages(self, pages):
        for nd in self.named_dests:
            pageno = None
            np = nd['/Page']
            
            if type(np) == NumberObject:
                continue
            
            for p in pages:
                if np.getObject() == p.pagedata.getObject():
                    pageno = p.id
            
            if pageno != None:
                nd[NameObject('/Page')] = NumberObject(pageno)
            else:
                raise ValueError, (nd['/Title'],) % "Unresolved named destination '%s'"
dataset/ETHPy150Open colemana/PyPDF2/PyPDF2/merger.py/PdfFileMerger._associate_dests_to_pages/swapped operands of `%`