From: Mark Slee Date: Thu, 1 Mar 2007 00:20:36 +0000 (+0000) Subject: Applying Thrift software license to Python source X-Git-Tag: 0.2.0~1440 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=89e2bb84e2ceb690c1d8abc1b6641e16ee73a19a;p=common%2Fthrift.git Applying Thrift software license to Python source Reviewed By: python git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665032 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/py/src/TSCons.py b/lib/py/src/TSCons.py index 430b43fd..bb0295f9 100644 --- a/lib/py/src/TSCons.py +++ b/lib/py/src/TSCons.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from SCons.Builder import Builder def scons_env(env): diff --git a/lib/py/src/Thrift.py b/lib/py/src/Thrift.py index 72618902..a1ec6ccc 100644 --- a/lib/py/src/Thrift.py +++ b/lib/py/src/Thrift.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + class TType: STOP = 0 VOID = 1 diff --git a/lib/py/src/__init__.py b/lib/py/src/__init__.py index 11aeca94..fd17ca9f 100644 --- a/lib/py/src/__init__.py +++ b/lib/py/src/__init__.py @@ -1 +1,9 @@ -__all__ = ["Thrift", "TSCons"] +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + +__all__ = ['Thrift', 'TSCons'] diff --git a/lib/py/src/protocol/TBinaryProtocol.py b/lib/py/src/protocol/TBinaryProtocol.py index 7fdfdda4..93734d4b 100644 --- a/lib/py/src/protocol/TBinaryProtocol.py +++ b/lib/py/src/protocol/TBinaryProtocol.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from TProtocol import * from struct import pack, unpack diff --git a/lib/py/src/protocol/TProtocol.py b/lib/py/src/protocol/TProtocol.py index dcc84ce1..f7d0b341 100644 --- a/lib/py/src/protocol/TProtocol.py +++ b/lib/py/src/protocol/TProtocol.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from thrift.Thrift import * class TProtocolException(TException): diff --git a/lib/py/src/protocol/__init__.py b/lib/py/src/protocol/__init__.py index e0c1c5e5..bcc981db 100644 --- a/lib/py/src/protocol/__init__.py +++ b/lib/py/src/protocol/__init__.py @@ -1 +1,9 @@ -__all__ = ["TProtocol", "TBinaryProtocol"] +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + +__all__ = ['TProtocol', 'TBinaryProtocol'] diff --git a/lib/py/src/server/TServer.py b/lib/py/src/server/TServer.py index 147d075c..2a8d5f40 100644 --- a/lib/py/src/server/TServer.py +++ b/lib/py/src/server/TServer.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + import sys import traceback import threading diff --git a/lib/py/src/server/__init__.py b/lib/py/src/server/__init__.py index f7e08be1..d08db0c9 100644 --- a/lib/py/src/server/__init__.py +++ b/lib/py/src/server/__init__.py @@ -1 +1,9 @@ -__all__ = ["TServer"] +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + +__all__ = ['TServer'] diff --git a/lib/py/src/transport/THttpClient.py b/lib/py/src/transport/THttpClient.py index 7b39b633..7410fa4f 100644 --- a/lib/py/src/transport/THttpClient.py +++ b/lib/py/src/transport/THttpClient.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from TTransport import * from cStringIO import StringIO diff --git a/lib/py/src/transport/TSocket.py b/lib/py/src/transport/TSocket.py index ee429cd5..63ebd471 100644 --- a/lib/py/src/transport/TSocket.py +++ b/lib/py/src/transport/TSocket.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from TTransport import * import socket diff --git a/lib/py/src/transport/TTransport.py b/lib/py/src/transport/TTransport.py index b8ca7b1e..b655b329 100644 --- a/lib/py/src/transport/TTransport.py +++ b/lib/py/src/transport/TTransport.py @@ -1,3 +1,11 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + from cStringIO import StringIO from struct import pack,unpack from thrift.Thrift import TException diff --git a/lib/py/src/transport/__init__.py b/lib/py/src/transport/__init__.py index b45e718c..4a23c847 100644 --- a/lib/py/src/transport/__init__.py +++ b/lib/py/src/transport/__init__.py @@ -1 +1,9 @@ +#!/usr/bin/env python +# +# Copyright (c) 2006- Facebook +# Distributed under the Thrift Software License +# +# See accompanying file LICENSE or visit the Thrift site at: +# http://developers.facebook.com/thrift/ + __all__ = ['TTransport', 'TSocket', 'THttpClient']