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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
sourceJoin(nick, ident, host) -> str

Join a source previously split by sourceSplit
and join it back together inserting the ! and @
appropiately.

        def sourceJoin(nick, ident, host):
    """sourceJoin(nick, ident, host) -> str

    Join a source previously split by sourceSplit
    and join it back together inserting the ! and @
    appropiately.
    """

    return "%s!%s@%s" % (nick, ident, host)
        


src/c/i/circuits-3.0.0.dev/tests/protocols/test_irc.py   circuits(Download)
#!/usr/bin/env python
 
from circuits import handler, Event, Component
from circuits.protocols.irc import strip, sourceJoin, sourceSplit, IRC
 
def test_sourceJoin():
    nick, ident, host = "test", "foo", "localhost"
    s = sourceJoin(nick, ident, host)
    assert s == "test!foo@localhost"