Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

Add mit lhcb site #12

Merged
merged 4 commits into from Sep 8, 2020
Merged

Add mit lhcb site #12

merged 4 commits into from Sep 8, 2020

Conversation

djw8605
Copy link
Member

@djw8605 djw8605 commented Sep 8, 2020

No description provided.

@djw8605 djw8605 requested a review from edquist September 8, 2020 16:03
apel_report.py Outdated
@@ -221,10 +230,9 @@ def main():
year,month = auto_year_month()
else:
try:
year,month = map(int, sys.argv[1:])
year,month = list(map(int, sys.argv[1:]))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
year,month = list(map(int, sys.argv[1:]))
year,month = map(int, sys.argv[1:])

conversion to a list here is unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

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

2to3 made that change. Odd, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Eh, presumably map(...) -> list(map(...)) is just a standard conversion ... It is unnecessary in contexts where the return value is consumed as a sequence rather than an actual list, but i don't know how smart 2to3 is at detecting that kind of thing.

Copy link
Contributor

@edquist edquist left a comment

Choose a reason for hiding this comment

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

One minor suggestion otherwise looks good.

And note that this actually requires python3 rather than just adding support for it.

@djw8605 djw8605 merged commit 8560b1f into master Sep 8, 2020
@djw8605 djw8605 deleted the add-mit-lhcb branch September 8, 2020 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants