Mercurial > repos > fubar > jbrowse2
comparison foo @ 127:fbabf7498471 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 116b1a4bbd62251ad552306df2dc8aa8f46c6721
author | fubar |
---|---|
date | Mon, 07 Oct 2024 02:11:55 +0000 |
parents | 49f3d3878413 |
children |
comparison
equal
deleted
inserted
replaced
126:fd0fc6fdc7c5 | 127:fbabf7498471 |
---|---|
1 import xml.etree.ElementTree as ET | |
2 import string | |
3 removeMe = string.punctuation.replace('.', ' ').replace('/', '').replace('-', '') | |
4 nopunct = str.maketrans(dict.fromkeys(removeMe)) | |
5 xmlstr = '<foo><bar key="!::{}////foo \\~~~~ bar">text</bar></foo>' | |
6 root = ET.fromstring(xmlstr) | |
7 print(root[0].attrib['key'],'=',root[0].attrib['key'].translate(nopunct)) |