diff --git a/py/net/pipe/common.py b/py/net/pipe/common.py index 7a17fb890..ba0aa7a29 100644 --- a/py/net/pipe/common.py +++ b/py/net/pipe/common.py @@ -1,6 +1,14 @@ -import greensock2 -from pypeers.tool import log +from py.__.net import greensock2 +VERBOSE = True + + +if VERBOSE: + def log(msg, *args): + print '*', msg % args +else: + def log(msg, *args): + pass class BufferedInput(object): in_buf = '' diff --git a/py/net/pipe/gsocket.py b/py/net/pipe/gsocket.py index 4a2d9e05e..a3f6d7e20 100644 --- a/py/net/pipe/gsocket.py +++ b/py/net/pipe/gsocket.py @@ -1,4 +1,4 @@ -import greensock2 +from py.__.net import greensock2 import socket, errno, os error = socket.error diff --git a/py/net/pipe/mp.py b/py/net/pipe/mp.py index cfc9c13c7..f67171681 100644 --- a/py/net/pipe/mp.py +++ b/py/net/pipe/mp.py @@ -1,4 +1,4 @@ -from pypeers.stream.common import BufferedInput +from py.__.net.pipe.common import BufferedInput class MeetingPointInput(BufferedInput): diff --git a/py/net/server/httpserver.py b/py/net/server/httpserver.py index e0f2dbf21..57c55d8a9 100644 --- a/py/net/server/httpserver.py +++ b/py/net/server/httpserver.py @@ -1,6 +1,6 @@ import BaseHTTPServer -from pypeers import greensock2 -from pypeers.pipe.gsocket import GreenSocket +from py.__.net import greensock2 +from py.__.net.pipe.gsocket import GreenSocket class GreenMixIn: