From ea3ee25ff4ad2015bb5e48d1ac0e06eda2d792ad Mon Sep 17 00:00:00 2001
From: Kenneth Giusti <kgiusti@redhat.com>
Date: Mon, 13 Jan 2014 15:39:04 -0500
Subject: [PATCH] move __all__ to top

---
 python/connection.py | 10 +++++-----
 python/container.py  | 10 ++++++----
 python/link.py       | 14 +++++++-------
 python/sockets.py    | 11 ++++++-----
 4 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/python/connection.py b/python/connection.py
index d689e71..0810163 100644
--- a/python/connection.py
+++ b/python/connection.py
@@ -17,6 +17,11 @@
 # under the License.
 #
 
+__all__ = [
+    "ConnectionEventHandler",
+    "Connection"
+    ]
+
 import logging
 
 import proton
@@ -488,8 +493,3 @@ Associate an arbitrary user object with this Connection.
         if name in self._receiver_links:
             del self._receiver_links[name]
 
-
-__all__ = [
-    "ConnectionEventHandler",
-    "Connection"
-    ]
diff --git a/python/container.py b/python/container.py
index 5e8b937..ea0cd90 100644
--- a/python/container.py
+++ b/python/container.py
@@ -16,6 +16,12 @@
 # specific language governing permissions and limitations
 # under the License.
 #
+
+__all__ = [
+    "ContainerEventHandler",
+    "Container"
+    ]
+
 import heapq, logging
 from connection import Connection
 
@@ -88,7 +94,3 @@ class Container(object):
         if name in self._connections:
             del self._connections[name]
 
-__all__ = [
-    "ContainerEventHandler",
-    "Container"
-    ]
diff --git a/python/link.py b/python/link.py
index 3a0225a..42524ae 100644
--- a/python/link.py
+++ b/python/link.py
@@ -17,6 +17,13 @@
 # under the License.
 #
 
+__all__ = [
+    "SenderEventHandler",
+    "SenderLink",
+    "ReceiverEventHandler",
+    "ReceiverLink"
+    ]
+
 import collections, logging
 import proton
 
@@ -321,10 +328,3 @@ class ReceiverLink(_Link):
         delivery.update(result)
         delivery.settle()
 
-
-__all__ = [
-    "SenderEventHandler",
-    "SenderLink",
-    "ReceiverEventHandler",
-    "ReceiverLink"
-    ]
diff --git a/python/sockets.py b/python/sockets.py
index 932ba0f..e4393bf 100644
--- a/python/sockets.py
+++ b/python/sockets.py
@@ -16,6 +16,12 @@
 # specific language governing permissions and limitations
 # under the License.
 #
+
+__all__ = [
+    "read_socket_input",
+    "write_socket_output"
+    ]
+
 import socket, errno, logging
 
 from connection import Connection
@@ -101,8 +107,3 @@ def write_socket_output(connection, socket_obj):
         connection.close_output()
     return count
 
-
-__all__ = [
-    "read_socket_input",
-    "write_socket_output"
-    ]