Did I find the right examples for you? yes no

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

src/d/i/digsby-HEAD/digsby/src/oscar/login2.py   digsby(Download)
from util import pack_pstr, unpack_pstr
def make_remainder(password):
    return '@\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00' + pack_pstr(
            '\x00' + pack_pstr(password) +\
def make_packet(un, password):
    #i0 are two "random bytes", not sure what the restrictions here are
    n = top3 + 'i0' + middle
    n += pack_pstr(un)
    n += m2
def make_packet2(un, password):
    n = top3 + 'i0' + middle
    n += pack_pstr(un.encode('ascii'))
    n += m2
    r = make_remainder(password)

src/d/i/digsby-HEAD/digsby/src/mail/smtp.py   digsby(Download)
import traceback
from common import profile
from util import unpack_pstr, pack_pstr
from common.emailaccount import EmailAccount, localprefs_key