Remove Python 2 compatibility shims by Harmon758 · Pull Request #56 · gitpython-developers/gitdb
This repository was archived by the owner on Jul 26, 2026. It is now read-only.
Merged
Byron merged 10 commits into gitpython-developers:master from Harmon758:python-2-support-removal Feb 17, 2020
Merged
Copy link Copy Markdown
Member
View reviewed changes
Copy link Copy Markdown
Member
Repository navigation
Remove Python 2 compatibility shims - #56
Merged
Byron merged 10 commits into gitpython-developers:master from Harmon758:python-2-support-removal Feb 17, 2020
Merged
Remove Python 2 compatibility shims #56 Byron merged 10 commits into gitpython-developers:master from Harmon758:python-2-support-removal
Conversation
Harmon758 commented Feb 16, 2020
Copy link Copy Markdown
Member
This PR removes and replaces Python 2 compatibility shims, since Python 2 support was dropped with c880f6b in 3.0.0:
- Remove
compat.memoryviewandcompat.PY3 - Remove and replace
compat.bufferandcompat.to_bytes - Remove and replace
compat.izipwithzip,compat.MAXSIZEwithsys.maxsize,compat.xrangewithrange - Remove and replace
encoding.string_typesandencoding.text_typewithstr - Remove and replace
izipinTestPack
Remove and replace compat.izip
58bce6b
Remove and replace izip in TestPack
73a9f79
Remove and replace compat.xrange
4a692fd
Remove and replace compat.buffer
3d14cc8
Remove compat.memoryview
d1c20d5
Remove and replace compat.to_bytes
59c053e
Remove and replace compat.MAXSIZE
321c3b4
Remove and replace encoding.string_types
c412680
Remove and replace encoding.text_type
77dc809
Remove compat.PY3
db9a65e
Harmon758
requested a review
from Byron
February 16, 2020 14:32
Harmon758
self-assigned this
Feb 16, 2020
Byron
approved these changes
Feb 17, 2020
View reviewed changes
Byron 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 .
Absolutely fantastic, thanks so much for your work!
I will be releasing this in a moment, and publish a new version of GitPython as well with adjusted requirements.
183d1bc
into
gitpython-developers : master
Feb 17, 2020
Harmon758
deleted the
python-2-support-removal
branch
February 17, 2020 02:38
danieldooley
mentioned this pull request
Feb 18, 2020
gitdb update breaks trufflehog
trufflesecurity/trufflehog#200
Closed
tadeu
mentioned this pull request
Feb 18, 2020
Fix "No module named 'gitdb.utils.compat'" error
conda-forge/gitpython-feedstock#35
Merged
3 of 5 tasks
Sign up for free
to subscribe to this conversation on GitHub .
Already have an account?
Sign in .