Changeset 226


Ignore:
Timestamp:
08/16/06 17:07:47 (8 years ago)
Author:
xi
Message:

The 'N' plain scalar was still recognized as !!bool. Fix it (close #26).

Location:
pyyaml/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/resolver.py

    r223 r226  
    154154Resolver.add_implicit_resolver( 
    155155        u'tag:yaml.org,2002:bool', 
    156         re.compile(ur'''^(?:yes|Yes|YES|n|N|no|No|NO 
     156        re.compile(ur'''^(?:yes|Yes|YES|no|No|NO 
    157157                    |true|True|TRUE|false|False|FALSE 
    158158                    |on|On|ON|off|Off|OFF)$''', re.X), 
  • pyyaml/trunk/tests/data/construct-bool.code

    r58 r226  
    44    "logical": True, 
    55    "option": True, 
     6    "but": { "y": "is a string", "n": "is a string" }, 
    67} 
  • pyyaml/trunk/tests/data/construct-bool.data

    r59 r226  
    33logical: True 
    44option: on 
     5 
     6 
     7but: 
     8    y: is a string 
     9    n: is a string 
Note: See TracChangeset for help on using the changeset viewer.