Skip to content

Commit

Permalink
Fix format_map usage failing in Py2
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Larralde committed Nov 24, 2016
1 parent ef18497 commit 2edd338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mzml2isa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 2edd338

Please sign in to comment.