Python Notes/yaml2xml.py: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(Created page with "<code> #!/usr/bin/python from yaml import load from gnosis.xml.pickle import dumps # from sys import stdin import sys data = sys.stdin.readlines() # print dumps(load(stdin.re...")
 
No edit summary
 
Line 1: Line 1:
<code>
<pre>
#!/usr/bin/python
#!/usr/bin/python
from yaml import load
from yaml import load
Line 10: Line 10:
dumps(data)
dumps(data)


</code>
</pre>

Latest revision as of 17:38, 6 March 2021

#!/usr/bin/python
from yaml import load
from gnosis.xml.pickle import dumps
# from sys import stdin
import sys

data = sys.stdin.readlines()
# print dumps(load(stdin.read()).next())
dumps(data)