You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/04/10 22:16:12 UTC
[qpid-python] 04/05: QPID-8631: replace use of `string.joinfields` function
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git
commit 5f4b01e0292e46e862011338b3e5b4858f76833a
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sun Apr 9 12:06:10 2023 +0200
QPID-8631: replace use of `string.joinfields` function
---
qpid/codec010.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qpid/codec010.py b/qpid/codec010.py
index a03e60e..bd6a3aa 100644
--- a/qpid/codec010.py
+++ b/qpid/codec010.py
@@ -18,7 +18,7 @@
#
from __future__ import absolute_import
-import datetime, string
+import datetime
from .packer import Packer
from .datatypes import serial, timestamp, RangedSet, Struct, UUID
from .ops import Compound, PRIMITIVE, COMPOUND
@@ -258,7 +258,7 @@ class Codec(Packer):
sc = StringCodec()
if m is not None:
sc.write_uint32(len(m))
- sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), ""))
+ sc.write(b"".join(map(self._write_map_elem, m.keys(), m.values())))
self.write_vbin32(sc.encoded)
def read_array(self):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org