Python Notes/yaml2xml.py

From Federal Burro of Information
Revision as of 17:37, 6 March 2021 by David (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

  1. !/usr/bin/python

from yaml import load from gnosis.xml.pickle import dumps

  1. from sys import stdin

import sys

data = sys.stdin.readlines()

  1. print dumps(load(stdin.read()).next())

dumps(data)