def detournotices(self, rt):
        from BeautifulSoup import BeautifulSoup
        from datetime import datetime
        URL = "http://www.portauthority.org/paac/apps/detoursdnn/pgDetours.asp?mode=results&s=Route&Type=Detour"
        _strptime = "%m/%d/%Y"
        
        rt = str(rt)
        formdata = {
            "txtRoute": "0"*(4-len(rt)) + rt,
            "submit1": "Search"
        }
        
        data = requests.post(URL, data=formdata)
        
        if data.content in "No Detours are running":
            return False
        else:
            detours = []
            parser = BeautifulSoup(data.content)
            
            titles = parser.findAll('td', attrs={'colspan': '2'})[0:-1]
            dates = parser.findAll('td', attrs={'colspan': '1', 'class': 'RegularFormText'})
            notices = zip(titles, dates)

            for rawTitle, rawDates in notices:
                title = rawTitle.p.a.text
                memoID = dict(rawTitle.p.a.attrs)['href'].split("MemoID=")[-1]
                fromDate, toDate = rawDates.p.text.replace('&nbsp;', ' ').replace('\r', '').replace('\n', '').replace('\t', '').split(' to ')

                try:
                    fromDate = datetime.strptime(fromDate, _strptime)
                except:
                    None
                
                try:
                    toDate = datetime.strptime(toDate, _strptime)
                except:
                    None
                
                detour = DetourNotice(memoID, title, fromDate, toDate)                
                detours.append(detour)

            return detours
dataset/ETHPy150Open nhfruchter/pgh-bustime/pghbustime/interface.py/BustimeAPI.detournotices/swapped operands of `in`