From 2edd3387e1aa2694c98b6e5a1f8656607b824e3f Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 24 Nov 2016 21:49:51 +0000 Subject: [PATCH] Fix format_map usage failing in Py2 --- mzml2isa/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mzml2isa/utils.py b/mzml2isa/utils.py index 2b9e01e..62f2606 100644 --- a/mzml2isa/utils.py +++ b/mzml2isa/utils.py @@ -194,7 +194,7 @@ def pyxpath(meta, query): This function also formats the xpath query using the *mzMLmeta.env dictionnary created by the **mzml.mzMLmeta.build_env** function. """ - return meta.tree.iterfind(query.format_map(meta.env), meta.ns) + return meta.tree.iterfind(query.format(**meta.env), meta.ns) def longest_substring(string1, string2): answer = ""