eclipse pydev无法与newClassName = oldClassName一起使用

时间:2012-10-26 03:15:50

标签: python eclipse python-3.x pydev kombu

一个海报的例子:

#!/usr/bin/env python3
from __future__ import with_statement

from kombu import BrokerConnection

with BrokerConnection("amqp://guest:guest@localhost:5672//") as conn:
    with conn.SimpleQueue("kombu_demo") as queue:
        queue.put({"hello": "world"}, serializer="json", compression="zlib")
它在控制台工作,但在eclipse + pydev中无法工作,问题是找不到BrokerConnection,我在kombu src中找到'BrokerConnection = Connection',kombu有一个名为的类 连接并想给它一个别名BrokerConnection,但是eclilpse + pydev不能很好地用这个,怎么解决这个问题?

0 个答案:

没有答案