Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Make NETHACKOPTIONS a tuple to protect from modification. #108

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Conversation

yobibyte
Copy link
Contributor

@yobibyte yobibyte commented Nov 3, 2020

No description provided.

@yobibyte yobibyte requested a review from heiner November 3, 2020 14:35
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2020
Copy link
Contributor

@heiner heiner left a comment

Choose a reason for hiding this comment

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

I like it. Let's wait for the tests to pass before submitting though.

@@ -115,7 +115,7 @@ def __init__(
shutil.copyfile(DLPATH, dlpath)

if options is None:
options = NETHACKOPTIONS
options = list(NETHACKOPTIONS)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this list call necessary given the next line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right!

Copy link
Contributor

@heiner heiner left a comment

Choose a reason for hiding this comment

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

LGTM.

@yobibyte yobibyte merged commit a09f185 into master Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants