From d1380a54ea37cd462074487894286911dfd7ce8b Mon Sep 17 00:00:00 2001 From: Julien Iguchi-Cartigny Date: Sun, 6 Jul 2014 17:29:21 +0200 Subject: [PATCH] Revert " replace split/join by replace in string operations" This reverts commit 39c4f7d42f380454d88497238b1d972bcbe8e556. --- wstools/Utility.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wstools/Utility.py b/wstools/Utility.py index 4cb1635..784d68a 100644 --- a/wstools/Utility.py +++ b/wstools/Utility.py @@ -293,7 +293,7 @@ class DOM: def GetSOAPEnvUri(self, version): """Return the appropriate SOAP envelope uri for a given human-friendly SOAP version string (e.g. '1.1').""" - attrname = 'NS_SOAP_ENV_%s' % version.replace('.', '_') + attrname = 'NS_SOAP_ENV_%s' % version.split('.').join('_') value = getattr(self, attrname, None) if value is not None: return value @@ -304,7 +304,7 @@ class DOM: def GetSOAPEncUri(self, version): """Return the appropriate SOAP encoding uri for a given human-friendly SOAP version string (e.g. '1.1').""" - attrname = 'NS_SOAP_ENC_%s' % version.replace('.', '_') + attrname = 'NS_SOAP_ENC_%s' % version.split('.').join('_') value = getattr(self, attrname, None) if value is not None: return value @@ -315,7 +315,7 @@ class DOM: def GetSOAPActorNextUri(self, version): """Return the right special next-actor uri for a given human-friendly SOAP version string (e.g. '1.1').""" - attrname = 'SOAP_ACTOR_NEXT_%s' % version.replace('.', '_') + attrname = 'SOAP_ACTOR_NEXT_%s' % version.split('.').join('_') value = getattr(self, attrname, None) if value is not None: return value @@ -393,7 +393,7 @@ class DOM: ) def GetWSDLUri(self, version): - attr = 'NS_WSDL_%s' % version.replace('.', '_') + attr = 'NS_WSDL_%s' % version.split('.').join('_') value = getattr(self, attr, None) if value is not None: return value @@ -402,7 +402,7 @@ class DOM: ) def GetWSDLSoapBindingUri(self, version): - attr = 'NS_SOAP_BINDING_%s' % version.replace('.', '_') + attr = 'NS_SOAP_BINDING_%s' % version.split('.').join('_') value = getattr(self, attr, None) if value is not None: return value @@ -411,7 +411,7 @@ class DOM: ) def GetWSDLHttpBindingUri(self, version): - attr = 'NS_HTTP_BINDING_%s' % version.replace('.', '_') + attr = 'NS_HTTP_BINDING_%s' % version.split('.').join('_') value = getattr(self, attr, None) if value is not None: return value @@ -420,7 +420,7 @@ class DOM: ) def GetWSDLMimeBindingUri(self, version): - attr = 'NS_MIME_BINDING_%s' % version.replace('.', '_') + attr = 'NS_MIME_BINDING_%s' % version.split('.').join('_') value = getattr(self, attr, None) if value is not None: return value @@ -429,7 +429,7 @@ class DOM: ) def GetWSDLHttpTransportUri(self, version): - attr = 'NS_SOAP_HTTP_%s' % version.replace('.', '_') + attr = 'NS_SOAP_HTTP_%s' % version.split('.').join('_') value = getattr(self, attr, None) if value is not None: return value