Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/i/digsby-HEAD/digsby/src/oscar/OscarBuddies.py   digsby(Download)
    def pretty_caps(self):
        return map(lambda x:oscar.capabilities.by_bytes.get(x, x), self._capabilities)
    def caps(self):
        from common import caps as digsbycaps
        import oscar.capabilities as oscarcaps
        protocaps = list(self.protocol.caps) # copy it so we don't modify the protocol's copy.
        mycaps = [oscarcaps.by_bytes.get(x, None) for x in self.capabilities]