Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent 6dbc701 commit 6342e59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/ruyaml/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions lib/ruyaml/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6342e59

Please sign in to comment.