Skip to content

Commit

Permalink
Make default_flow_style=False
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk authored and ingydotnet committed Mar 8, 2019
1 parent 07c88c6 commit 507a464
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/yaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def serialize(node, stream=None, Dumper=Dumper, **kwds):
return serialize_all([node], stream, Dumper=Dumper, **kwds)

def dump_all(documents, stream=None, Dumper=Dumper,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding='utf-8', explicit_start=None, explicit_end=None,
Expand Down
6 changes: 3 additions & 3 deletions lib/yaml/cyaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, stream):
class CBaseDumper(CEmitter, BaseRepresenter, BaseResolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -68,7 +68,7 @@ def __init__(self, stream,
class CSafeDumper(CEmitter, SafeRepresenter, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -85,7 +85,7 @@ def __init__(self, stream,
class CDumper(CEmitter, Serializer, Representer, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand Down
6 changes: 3 additions & 3 deletions lib/yaml/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -27,7 +27,7 @@ def __init__(self, stream,
class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -45,7 +45,7 @@ def __init__(self, stream,
class Dumper(Emitter, Serializer, Representer, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand Down
2 changes: 1 addition & 1 deletion lib/yaml/representer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BaseRepresenter(object):
yaml_representers = {}
yaml_multi_representers = {}

def __init__(self, default_style=None, default_flow_style=None, sort_keys=True):
def __init__(self, default_style=None, default_flow_style=False, sort_keys=True):
self.default_style = default_style
self.default_flow_style = default_flow_style
self.sort_keys = sort_keys
Expand Down
2 changes: 1 addition & 1 deletion lib3/yaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def serialize(node, stream=None, Dumper=Dumper, **kwds):
return serialize_all([node], stream, Dumper=Dumper, **kwds)

def dump_all(documents, stream=None, Dumper=Dumper,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand Down
6 changes: 3 additions & 3 deletions lib3/yaml/cyaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, stream):
class CBaseDumper(CEmitter, BaseRepresenter, BaseResolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -68,7 +68,7 @@ def __init__(self, stream,
class CSafeDumper(CEmitter, SafeRepresenter, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -85,7 +85,7 @@ def __init__(self, stream,
class CDumper(CEmitter, Serializer, Representer, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand Down
6 changes: 3 additions & 3 deletions lib3/yaml/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -27,7 +27,7 @@ def __init__(self, stream,
class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand All @@ -45,7 +45,7 @@ def __init__(self, stream,
class Dumper(Emitter, Serializer, Representer, Resolver):

def __init__(self, stream,
default_style=None, default_flow_style=None,
default_style=None, default_flow_style=False,
canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None,
encoding=None, explicit_start=None, explicit_end=None,
Expand Down
2 changes: 1 addition & 1 deletion lib3/yaml/representer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BaseRepresenter:
yaml_representers = {}
yaml_multi_representers = {}

def __init__(self, default_style=None, default_flow_style=None, sort_keys=True):
def __init__(self, default_style=None, default_flow_style=False, sort_keys=True):
self.default_style = default_style
self.sort_keys = sort_keys
self.default_flow_style = default_flow_style
Expand Down

0 comments on commit 507a464

Please sign in to comment.