Skip to content

Remove all six and __future__ imports (Python 2 compatibility) - #5

Merged
willgearty merged 1 commit into
django3from
copilot/remove-python2-compatibility
May 6, 2026
Merged

willgearty merged 1 commit into
django3from
copilot/remove-python2-compatibility

Conversation

Copilot AI commented May 6, 2026

Copy link
Copy Markdown

Drops all Python 2 backwards compatibility from the codebase, starting from e07f179 (origin/django3 tip).

Changes

  • Removed __future__ imports (absolute_import, unicode_literals, print_function) from all source and test files
  • Removed six dependency across all files, replacing with Python 3 native equivalents:
    • six.binary_type → bytes
    • six.string_types / six.text_type → str
    • six.iteritems(d) → d.items()
    • six.moves.range/filter/zip → removed (Python 3 builtins)

@willgearty willgearty left a comment

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.

Looks good 👍

@willgearty
willgearty marked this pull request as ready for review May 6, 2026 02:31
@willgearty
willgearty merged commit 7ef2798 into django3 May 6, 2026
1 check passed
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.

2 participants