File: python2.sh

package info (click to toggle)
pyyaml 3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,668 kB
  • sloc: python: 12,301; makefile: 41; ansic: 14; sh: 8
file content (5 lines) | stat: -rwxr-xr-x 190 bytes parent folder | download
1
2
3
4
5
#!/bin/sh
set -eu
export PYTHONIOENCODING='utf-8'
python -c "import yaml; print yaml.load('\N{PILE OF POO}')"
python -c "import yaml; print yaml.dump('\N{PILE OF POO}', allow_unicode=True)"