File: fix_code.py

package info (click to toggle)
python-yamlfix 1.17.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,892 kB
  • sloc: python: 1,757; makefile: 171; sh: 13
file content (7 lines) | stat: -rw-r--r-- 123 bytes parent folder | download
1
2
3
4
5
6
7
from yamlfix import fix_code

source_code = "a: 1"

fixed_code = fix_code(source_code)

assert fixed_code == "---\na: 1\n"