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

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

src/d/i/digsby-HEAD/digsby/src/oscar/snac/family_x02.py   digsby(Download)
    # Decode profile and away message.
    if 'profile' in tlvs:
        tlvs['profile'] = oscar.decode(tlvs['profile'], tlvs['prof_enc'])
    if 'away_msg' in tlvs and tlvs['away_msg']:
        tlvs['away_msg'] = oscar.decode(tlvs['away_msg'], tlvs['away_enc'])

src/d/i/digsby-HEAD/digsby/src/oscar/rendezvous/chat.py   digsby(Download)
def unpack_chat_invite(data):
    fmt = (('rendtlvs', 'named_tlvs', -1, rdv_tlvs),)
    rendtlvs, data = oscar.unpack(fmt, data)
    invite_msg = oscar.decode(rendtlvs.user_message, getattr(rendtlvs, 'encoding', 'ascii'))
    xdata = rendtlvs.extended_data