From 972e2d310953cad49ff6d2f1b1f0adb9714a38e4 Mon Sep 17 00:00:00 2001
From: Thomas Daskalakis
Date: Fri, 22 Nov 2024 16:50:01 +0200
Subject: [PATCH] Replace obsolete string.join with ''.join
---
src/SOAPpy/Parser.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/SOAPpy/Parser.py b/src/SOAPpy/Parser.py
index 15e8170..70e789c 100644
--- a/src/SOAPpy/Parser.py
+++ b/src/SOAPpy/Parser.py
@@ -6,7 +6,6 @@
from .Utilities import *
import six
-import string
import xml.sax
from wstools.XMLname import fromXMLname
import collections
@@ -222,7 +221,7 @@ def endElementNS(self, name, qname):
if href:
if href[0] != '#':
raise Error("Non-local hrefs are not yet suppported.")
- if self._data != None and string.join(self._data, "").strip() != '':
+ if self._data != None and "".join(self._data).strip() != '':
raise Error("hrefs can't have data")
href = href[1:]
@@ -334,14 +333,14 @@ def endElementNS(self, name, qname):
# XXX What if rule != kind?
if isinstance(rule, collections.Callable):
- data = rule(string.join(self._data, ""))
+ data = rule("".join(self._data))
elif type(rule) == DictType:
data = structType(name = (ns, name), attrs = attrs)
elif rule[1][:9] == 'arrayType':
data = self.convertType(cur.contents,
rule, attrs)
else:
- data = self.convertType(string.join(self._data, ""),
+ data = self.convertType("".join(self._data),
rule, attrs)
break
|