Ignore:
Timestamp:
09/06/13 11:38:07 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Allow tuples in dicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/yamlish.py

    r141 r344  
    7272            elif isinstance(v, dict):
    7373                output += self._dump_block(v, indent + 2)
    74             elif isinstance(v, list):
     74            elif isinstance(v, (list, tuple)):
    7575                output += self._dump_block(v, indent)
    7676            else:
    77                 raise NotImplementedError()
     77                raise NotImplementedError("Cannot dump %r", data)
    7878        return output
    7979
Note: See TracChangeset for help on using the changeset viewer.