def __init__(self, pageref, entry, is_root_doc=True):
        '''
        Creates new page with passed ref and data from entry
        '''
        # basics
        self.pageref = pageref
        self.referrers = set()
        self.startedDateTime = entry.startedDateTime
        self.last_entry = entry
        self.user_agent = entry.request.msg.headers.get('user-agent')
        # url, title, etc.
        if is_root_doc:
            self.root_document = entry
            self.url = entry.request.url
            self.title = self.url
        else:
            # if this is a hanging referrer
            if entry.request.msg.headers in 'referer':
                # save it so other entries w/ the same referrer will come here
                self.referrers.add(entry.request.msg.headers['referer'])
            self.url = None # can't guarantee it's the referrer
            self.title = 'unknown title'
dataset/ETHPy150Open andrewf/pcap2har/pcap2har/pagetracker.py/Page.__init__/swapped operands of `in`