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

Use is instead of equality for comparing with None #290

Closed
wants to merge 7 commits into from

Commits on Mar 14, 2019

  1. Support unicode literals over codepoint 0xffff

    Fixes yaml#25. Rebase and tidy up of yaml#63.
    peterkmurphy authored and ingydotnet committed Mar 14, 2019
    Copy the full SHA
    3a1452c View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2019

  1. Revert "Support unicode literals over codepoint 0xffff"

    This reverts commit 3a1452c.
    
    The tests will break on python 2.7 under win and macos.
    They were renamed in yaml#261
    perlpunk committed Mar 31, 2019
    Copy the full SHA
    66454d9 View commit details
    Browse the repository at this point in the history
  2. Fix logic for quoting special characters (yaml#276)

    * Fix logic for quoting special characters
    
    * Remove has_ucs4 from condition
    
    on systems with `sys.maxunicode <= 0xffff` the comparison
    (u'\U00010000' <= ch < u'\U0010ffff') can't be true anyway I think
    perlpunk committed Mar 31, 2019
    Copy the full SHA
    60ca52d View commit details
    Browse the repository at this point in the history
  3. Update CHANGES for 5.1 (yaml#280)

    * Update CHANGES
    
    Some PRs were forgotten, and some were listed that weren't merged.
    perlpunk committed Mar 31, 2019
    Copy the full SHA
    07a0f27 View commit details
    Browse the repository at this point in the history
  4. Change default loader for yaml.add_constructor (yaml#287)

    * Change default loader for yaml.add_constructor
    
    If the Loader parameter is not given, add constructor to
    all three loaders
    perlpunk committed Mar 31, 2019
    3
    Copy the full SHA
    69108fd View commit details
    Browse the repository at this point in the history
  5. Add custom constructors to multiple loaders

    When someone writes a subclass of the YAMLObject class, the constructors
    will now be added to all 3 (non-safe) loaders.
    
    Furthermore, we support the class variable `yaml_loader` being a list,
    offering more control of which loaders are affected.
    
    To support safe_load in your custom class you could add this:
    
        yaml_loader = yaml.SafeLoader
    
        yaml_loader = yaml.YAMLObject.yaml_loader
        yaml_loader.append(yaml.SafeLoader)
    ingydotnet authored and perlpunk committed Mar 31, 2019
    Copy the full SHA
    db91810 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Copy the full SHA
    75b4d95 View commit details
    Browse the repository at this point in the history