mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Declare to use absolute imports where needed.
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.Thrift import TProcessor, TMessageType, TException
|
||||
|
||||
from thrift.protocol import TProtocolDecorator, TMultiplexedProtocol
|
||||
|
||||
|
||||
class TMultiplexedProcessor(TProcessor):
|
||||
def __init__(self):
|
||||
self.services = {}
|
||||
|
||||
@@ -17,9 +17,12 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
from thrift.protocol import TBinaryProtocol
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.transport import TTransport
|
||||
|
||||
from thrift.protocol import TBinaryProtocol
|
||||
|
||||
|
||||
def serialize(thrift_object,
|
||||
protocol_factory=TBinaryProtocol.TBinaryProtocolFactory()):
|
||||
|
||||
@@ -16,11 +16,13 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.Thrift import *
|
||||
from thrift.protocol import TBinaryProtocol
|
||||
from thrift.transport import TTransport
|
||||
|
||||
from thrift.protocol import TBinaryProtocol
|
||||
|
||||
try:
|
||||
from thrift.protocol import fastbinary
|
||||
except:
|
||||
|
||||
@@ -16,8 +16,10 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.Thrift import TMessageType
|
||||
|
||||
from thrift.protocol import TProtocolDecorator
|
||||
|
||||
SEPARATOR = ":"
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.Thrift import *
|
||||
|
||||
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
|
||||
from thrift.protocol.TProtocol import TProtocolBase
|
||||
from types import *
|
||||
|
||||
|
||||
class TProtocolDecorator():
|
||||
def __init__(self, protocol):
|
||||
TProtocolBase(protocol)
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import socket
|
||||
import ssl
|
||||
|
||||
from thrift.transport import TSocket
|
||||
from thrift.transport.TTransport import TTransportException
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from cStringIO import StringIO
|
||||
from struct import pack, unpack
|
||||
from thrift.Thrift import TException
|
||||
|
||||
@@ -16,19 +16,18 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
from __future__ import absolute_import
|
||||
|
||||
import struct
|
||||
from cStringIO import StringIO
|
||||
|
||||
from zope.interface import implements, Interface, Attribute
|
||||
from thrift.transport import TTransport
|
||||
from twisted.internet import defer
|
||||
from twisted.internet.protocol import ServerFactory, ClientFactory, \
|
||||
connectionDone
|
||||
from twisted.internet import defer
|
||||
from twisted.internet.threads import deferToThread
|
||||
from twisted.protocols import basic
|
||||
from twisted.web import server, resource, http
|
||||
|
||||
from thrift.transport import TTransport
|
||||
from zope.interface import implements, Interface, Attribute
|
||||
|
||||
|
||||
class TMessageSenderTransport(TTransport.TTransportBase):
|
||||
|
||||
Reference in New Issue
Block a user