Skip to content

Tools: Update PyYAML version.#2279

Merged
leobalter merged 1 commit into
tc39:masterfrom
Ms2ger:update-pyyaml
Aug 12, 2019
Merged

Tools: Update PyYAML version.#2279
leobalter merged 1 commit into
tc39:masterfrom
Ms2ger:update-pyyaml

Conversation

@Ms2ger
Copy link
Copy Markdown
Contributor

@Ms2ger Ms2ger commented Aug 12, 2019

Fixes #2278.

features = list(OrderedDict.fromkeys(features))
if len(features):
lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features).strip())]
lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features, default_flow_style=True).strip())]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default changed in yaml/pyyaml#256.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird how the library picks an option where a default option needs to explicitly set as True. The actual default action is without the default option is the equivalent of False. Sounds very counterintuitive.

Anyway, it's not a problem of Test262 and thanks for fixing this up.

@leobalter leobalter merged commit c4e5d69 into tc39:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider updating PyYAML

2 participants