Ignore:
Timestamp:
09/02/13 15:58:35 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
30313938373937323863363239653737303964366434373236633865646334356430646532313364
Message:

Support integer dict keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/yamlish.py

    r132 r136  
    77 * ints, floats,
    88 * True, False, and None
    9 dict keys can only be strings.
     9dict keys can only be scalar.
    1010'''
    1111
     
    212212            if dm:
    213213                key, value = dm.groups()
     214                key = self._parse_value(key)
    214215                assert self._in_dict
    215216                if value:
    216                     self._container[key] = self._parse_value(value)
     217                    value = self._parse_value(value)
     218                    self._container[key] = value
    217219                else:
    218220                    self._parent_key = key
Note: See TracChangeset for help on using the changeset viewer.