libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1180196 - /libcloud/trunk/libcloud/utils.py
Date Fri, 07 Oct 2011 20:11:08 GMT
Author: tomaz
Date: Fri Oct  7 20:11:08 2011
New Revision: 1180196

URL: http://svn.apache.org/viewvc?rev=1180196&view=rev
Log:
Make namespace argument optional in all the xml utility functions.

Modified:
    libcloud/trunk/libcloud/utils.py

Modified: libcloud/trunk/libcloud/utils.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/utils.py?rev=1180196&r1=1180195&r2=1180196&view=diff
==============================================================================
--- libcloud/trunk/libcloud/utils.py (original)
+++ libcloud/trunk/libcloud/utils.py Fri Oct  7 20:11:08 2011
@@ -191,13 +191,13 @@ def fixxpath(xpath, namespace=None):
 
     return '/'.join(['{%s}%s' % (namespace, e) for e in xpath.split('/')])
 
-def findtext(element, xpath, namespace):
+def findtext(element, xpath, namespace=None):
     return element.findtext(fixxpath(xpath=xpath, namespace=namespace))
 
-def findattr(element, xpath, namespace):
+def findattr(element, xpath, namespace=None):
     return element.findtext(fixxpath(xpath=xpath, namespace=namespace))
 
-def findall(element, xpath, namespace):
+def findall(element, xpath, namespace=None):
     return element.findall(fixxpath(xpath=xpath, namespace=namespace))
 
 def reverse_dict(dictionary):



Mime
View raw message