You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/11/17 21:05:42 UTC

[16/17] git commit: Add missing __all__ to libcloud.utils.files and libcloud.utils.xml module.

Add missing __all__ to libcloud.utils.files and libcloud.utils.xml module.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c2438acd
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c2438acd
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c2438acd

Branch: refs/heads/trunk
Commit: c2438acd3d9681edf83f639b737cd5a8b23e8f9e
Parents: 58dfc29
Author: Tomaz Muraus <to...@apache.org>
Authored: Sun Nov 17 20:44:16 2013 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Nov 17 20:45:07 2013 +0100

----------------------------------------------------------------------
 libcloud/utils/files.py | 10 ++++++++--
 libcloud/utils/xml.py   |  7 +++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c2438acd/libcloud/utils/files.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/files.py b/libcloud/utils/files.py
index 201e94a..19b2a3f 100644
--- a/libcloud/utils/files.py
+++ b/libcloud/utils/files.py
@@ -21,11 +21,17 @@ from libcloud.utils.py3 import httplib
 from libcloud.utils.py3 import next
 from libcloud.utils.py3 import b
 
-CHUNK_SIZE = 8096
-
 if PY3:
     from io import FileIO as file
 
+CHUNK_SIZE = 8096
+
+__all__ = [
+    'read_in_chunks',
+    'exhaust_iterator',
+    'guess_file_mime_type'
+]
+
 
 def read_in_chunks(iterator, chunk_size=None, fill_size=False):
     """

http://git-wip-us.apache.org/repos/asf/libcloud/blob/c2438acd/libcloud/utils/xml.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/xml.py b/libcloud/utils/xml.py
index d05b843..c2c1321 100644
--- a/libcloud/utils/xml.py
+++ b/libcloud/utils/xml.py
@@ -13,6 +13,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+__all__ = [
+    'fixxpath',
+    'findtext',
+    'findattr',
+    'findall'
+]
+
 
 def fixxpath(xpath, namespace=None):
     # ElementTree wants namespaces in its xpaths, so here we add them.