Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unsafe operations more obvious #21

Closed
wants to merge 179 commits into from

Conversation

jamesbroadhead
Copy link

  • Introduce wrapper functions for yaml.[load,dump] and yaml.[load,dump]_all
  • Rename default yaml.[load,dump][,all] to yaml.unsafe$1
  • Mark the 'Dumper','Loader' kwargs for these depreacated
  • Mark dumper.Dumper & loader.Loader as deprecated
  • As this change introduces new deprecation warnings, bump the version
    number to 3.11
  • Make the default test execution environment raise on warnings (note,
    the existing test suite is not clean for python3)

This relates to issue #5

Thanks Gustavo Rahal for reporting it.
 * In the flow context, indentation level is not checked.
 * For quoted scalars, indentation level is not checked.
 * Flow scalars are not required to have at least 1 space indentation. Zero indentation is acceptable.
 * Add parsing events: STREAM-START, DOCUMENT-START, DOCUMENT-END.
Usage:
{{{
$ cat your_yaml_document | ./yaml_hl.py                         # Produces colored ASCII output
$ cat your_yaml_document | ./yaml_hl.py -c yaml_hl_html.cfg     # Produces HTML output.
}}}
xitology and others added 27 commits December 30, 2008 19:55
… line width (Thanks ingy for the report and the patch).
- Introduce wrapper functions for yaml.[load,dump] and yaml.[load,dump]_all
- Rename default yaml.[load,dump][,_all] to yaml.unsafe_$1
- Mark the 'Dumper','Loader' kwargs for these depreacated
- Mark dumper.Dumper & loader.Loader as deprecated
- As this change introduces new deprecation warnings, bump the version
  number to 3.11
- Make the default test execution environment raise on warnings (note,
  the existing test suite is not clean for python3)
@ingydotnet
Copy link
Member

This repo is now canonical but we had to force push master. @jamesbroadhead can you rebase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants