Ignore:
Timestamp:
05/04/06 06:46:11 (9 years ago)
Author:
xi
Message:

Add a way to override default style chosen by Representer: fix #9

File:
1 edited

Legend:

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

    r147 r152  
    135135 
    136136def dump_all(documents, stream=None, Dumper=Dumper, 
     137        default_style=None, default_flow_style=None, 
    137138        canonical=None, indent=None, width=None, 
    138139        allow_unicode=None, line_break=None, 
     
    151152        stream = StringIO() 
    152153        getvalue = stream.getvalue 
    153     dumper = Dumper(stream, canonical=canonical, indent=indent, width=width, 
     154    dumper = Dumper(stream, default_style=default_style, 
     155            default_flow_style=default_flow_style, 
     156            canonical=canonical, indent=indent, width=width, 
    154157            allow_unicode=allow_unicode, line_break=line_break, 
    155158            encoding=encoding, version=version, tags=tags, 
Note: See TracChangeset for help on using the changeset viewer.