Did I find the right examples for you? yes no

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

src/p/e/petmail-HEAD/petmail/mailbox/server.py   petmail(Download)
from .. import rrid
from ..eventual import eventually
from ..util import remove_prefix, split_into, hex_or_none, unhex_or_none
from ..netstring import split_netstrings_and_trailer
from ..web import EventsProtocol
    def add_transport(self, TTID, TT0, RT, symkey):
        tid = self.db.insert("INSERT INTO mailbox_server_transports"
                             " (TTID, TT0, RT, symkey) VALUES (?,?,?,?)",
                             (TTID.encode("hex"), TT0.encode("hex"),
                              hex_or_none(RT), hex_or_none(symkey)),