diff --git a/lib/ruyaml/comments.py b/lib/ruyaml/comments.py index 0e30c08..1fa2811 100644 --- a/lib/ruyaml/comments.py +++ b/lib/ruyaml/comments.py @@ -1105,9 +1105,9 @@ def __init__(self, *args, **kw): except TypeError: raise - __delitem__ = ( - __setitem__ - ) = clear = pop = popitem = setdefault = update = raise_immutable + __delitem__ = __setitem__ = clear = pop = popitem = setdefault = update = ( + raise_immutable + ) # need to implement __getitem__, __iter__ and __len__ def __getitem__(self, index): diff --git a/lib/ruyaml/emitter.py b/lib/ruyaml/emitter.py index d5fe1a1..cb08be6 100644 --- a/lib/ruyaml/emitter.py +++ b/lib/ruyaml/emitter.py @@ -1234,9 +1234,9 @@ def analyze_scalar(self, scalar): # Spaces followed by breaks, as well as special character are only # allowed for double quoted scalars. if special_characters: - allow_flow_plain = ( - allow_block_plain - ) = allow_single_quoted = allow_block = False + allow_flow_plain = allow_block_plain = allow_single_quoted = allow_block = ( + False + ) elif space_break: allow_flow_plain = allow_block_plain = allow_single_quoted = False if not self.allow_space_break: