Exemplo n.º 1
0
def load_info():
    if not core.has_feature(Features.WITH_MOZJS):
        lc.get_friends_info(None,None).addListener(load_group_info)
    else:
        js = lwjs.Lwjs()
        hashjs = request.urlopen("http://pidginlwqq.sinaapp.com/hash.js")
        js.load(hashjs.read())
        lc.get_friends_info(js.hashfunc,js.js).addListener(load_group_info)
    pass
Exemplo n.º 2
0
def show_version():
    print('version:',utf(lwqq.version))
    feature = {
            0:None,
            Features.WITH_LIBEV: "libev",
            Features.WITH_LIBUV: "libuv",
            Features.WITH_MOZJS: "mozjs",
            Features.WITH_SQLITE: "sqlite",
            Features.WITH_SSL: "ssl"
            }
    print('feature:',tuple(filter(None,[feature[core.has_feature(x)] for x in feature.keys()])))
    pass