Skip to content

[2018] Remove Python 2.7 support #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[2018] Remove Python 2.7 support #58

wants to merge 1 commit into from

Conversation

kfarnung
Copy link
Owner

No description provided.

@kfarnung kfarnung requested a review from Copilot May 20, 2025 07:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes legacy Python 2.7 compatibility from all 2018/dayXX scripts by deleting from __future__ imports, replacing xrange with range, and updating integer boundary logic.

  • Deleted print_function future imports across multiple files.
  • Replaced all xrange uses with range.
  • Swapped sys.maxsize-based constants for float('inf')/float('-inf') in bounding box logic.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
2018/day20/day20.py Removed unused Python2 future import.
2018/day19/day19.py Removed unused Python2 future import.
2018/day18/day18.py Dropped xrange fallback and replaced with range.
2018/day17/day17.py Removed unused Python2 future import.
2018/day16/day16.py Removed unused Python2 future import.
2018/day15/day15.py Removed unused Python2 future import.
2018/day14/day14.py Removed unused Python2 future import.
2018/day13/day13.py Removed unused Python2 future import.
2018/day12/day12.py Removed unused Python2 future import.
2018/day11/day11.py Removed unused Python2 future import.
2018/day10/day10.py Removed unused Python2 future import.
2018/day09/day09.py Removed unused Python2 future import.
2018/day08/day08.py Removed unused Python2 future import.
2018/day07/day07.py Removed unused Python2 future import.
2018/day06/day06.py Replaced sys.maxsize constants with infinities.
2018/day05/day05.py Removed unused Python2 future import.
2018/day04/day04.py Removed unused Python2 future import.
2018/day03/day03.py Removed unused Python2 future import.
2018/day02/day02.py Removed unused Python2 future import.
2018/day01/day01.py Removed unused Python2 future import.

@kfarnung kfarnung closed this May 20, 2025
@kfarnung kfarnung deleted the python3 branch May 20, 2025 07:30
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.

1 participant