From b19fdacb61a012ee1c5a2565b0ca7c5501a6a00e Mon Sep 17 00:00:00 2001 From: Tiger Zhang Date: Thu, 13 Apr 2023 12:55:12 -0500 Subject: [PATCH] Change format string to be python 2 compatible --- exchangelib/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchangelib/services.py b/exchangelib/services.py index 74dc510..1229aa7 100644 --- a/exchangelib/services.py +++ b/exchangelib/services.py @@ -2005,7 +2005,7 @@ def call(self, items, destination_format): yield cls_map[elem.tag].from_xml(elem, account=None) def get_payload(self, items, destination_format): - payload = create_element(f"m:{self.SERVICE_NAME}", DestinationFormat=destination_format) + payload = create_element("m:{}".format(self.SERVICE_NAME), DestinationFormat=destination_format) item_ids = create_element("m:SourceIds") for item in items: set_xml_value(item_ids, item, version=None)