René's URL Explorer Experiment


Title: Remove Python 2 compatibility shims by Harmon758 · Pull Request #56 · gitpython-developers/gitdb · GitHub

Open Graph Title: Remove Python 2 compatibility shims by Harmon758 · Pull Request #56 · gitpython-developers/gitdb

X Title: Remove Python 2 compatibility shims by Harmon758 · Pull Request #56 · gitpython-developers/gitdb

Description: This PR removes and replaces Python 2 compatibility shims, since Python 2 support was dropped with c880f6b in 3.0.0: Remove compat.memoryview and compat.PY3 Remove and replace compat.buffer and compat.to_bytes Remove and replace compat.izip with zip, compat.MAXSIZE with sys.maxsize, compat.xrange with range Remove and replace encoding.string_types and encoding.text_type with str Remove and replace izip in TestPack

Open Graph Description: This PR removes and replaces Python 2 compatibility shims, since Python 2 support was dropped with c880f6b in 3.0.0: Remove compat.memoryview and compat.PY3 Remove and replace compat.buffer and co...

X Description: This PR removes and replaces Python 2 compatibility shims, since Python 2 support was dropped with c880f6b in 3.0.0: Remove compat.memoryview and compat.PY3 Remove and replace compat.buffer and co...

Opengraph URL: https://github.com/gitpython-developers/gitdb/pull/56

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6f200f51-fe84-d306-fb78-5f8de5d3f21f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC39C:F56F6:24087F:318C27:6B00B018
html-safe-noncee05739895ed7add6e53be98243b6874d74f8e854687af4e9b748ef82ba68e67f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzlDOkY1NkY2OjI0MDg3RjozMThDMjc6NkIwMEIwMTgiLCJ2aXNpdG9yX2lkIjoiMTA1ODMwNzgzOTM0MjE5NDcxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2bb4cc3df2620cde36c8aea3bb1082b162c1cc643f17bd846d8127cc57d5815b
hovercard-subject-tagpull_request:375832502
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gitpython-developers/gitdb/pull/56/files
twitter:imagehttps://avatars.githubusercontent.com/u/9403740?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9403740?s=400&v=4
og:image:altThis PR removes and replaces Python 2 compatibility shims, since Python 2 support was dropped with c880f6b in 3.0.0: Remove compat.memoryview and compat.PY3 Remove and replace compat.buffer and co...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126093
octolytics-dimension-repository_nwogitpython-developers/gitdb
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126093
octolytics-dimension-repository_network_root_nwogitpython-developers/gitdb
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release729d8cda69b3d267995675dfbf89ff27ccf61bf6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/gitdb/pull/56/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2Fgitdb%2Fpull%2F56%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2Fgitdb%2Fpull%2F56%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=gitpython-developers%2Fgitdb
Reloadhttps://github.com/gitpython-developers/gitdb/pull/56/files
Reloadhttps://github.com/gitpython-developers/gitdb/pull/56/files
Reloadhttps://github.com/gitpython-developers/gitdb/pull/56/files
gitpython-developershttps://github.com/gitpython-developers
gitdbhttps://github.com/gitpython-developers/gitdb
Codehttps://github.com/gitpython-developers/gitdb
Issues6 (6)https://github.com/gitpython-developers/gitdb/issues
Pull requestshttps://github.com/gitpython-developers/gitdb/pulls
Discussionshttps://github.com/gitpython-developers/gitdb/discussions
Actionshttps://github.com/gitpython-developers/gitdb/actions
Security and qualityhttps://github.com/gitpython-developers/gitdb/security
Insightshttps://github.com/gitpython-developers/gitdb/insights
Byronhttps://github.com/Byron
gitpython-developers:masterhttps://github.com/gitpython-developers/gitdb/tree/master
Harmon758:python-2-support-removalhttps://github.com/Harmon758/gitdb/tree/python-2-support-removal
Conversation 1 https://github.com/gitpython-developers/gitdb/pull/56
Commits 10 https://github.com/gitpython-developers/gitdb/pull/56/commits
Checks 0 https://github.com/gitpython-developers/gitdb/pull/56/checks
Files changed https://github.com/gitpython-developers/gitdb/pull/56/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/56/files
Remove Python 2 compatibility shims https://github.com/gitpython-developers/gitdb/pull/56/files#top
Show all changes 10 commits https://github.com/gitpython-developers/gitdb/pull/56/files
58bce6b Remove and replace compat.izip Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/58bce6bd1051e4fd5df7c5c8123a1783cc6e9f84
73a9f79 Remove and replace izip in TestPack Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/73a9f7965139e319446c04bbcc9794a8db0de45a
4a692fd Remove and replace compat.xrange Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/4a692fdd43e67810509b1c1843fa203714b14f0e
3d14cc8 Remove and replace compat.buffer Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/3d14cc84b0a5e42d755d24d77a6e4af6bea8c3c1
d1c20d5 Remove compat.memoryview Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/d1c20d559a1f264dad12d1033a052ffc1c159260
59c053e Remove and replace compat.to_bytes Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/59c053ee05d6e5f50f8699260aa0e362b567c033
321c3b4 Remove and replace compat.MAXSIZE Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/321c3b46b4792cf83bf0c5814d5a1a43cdf6933d
c412680 Remove and replace encoding.string_types Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/c41268071bba593cecd420c400603e094f40a6dc
77dc809 Remove and replace encoding.text_type Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/77dc809542d15c40dbe60ff55cd830082c3ad904
db9a65e Remove compat.PY3 Harmon758 Feb 16, 2020 https://github.com/gitpython-developers/gitdb/pull/56/commits/db9a65e3b0eceb9c52359273afb3313860e5e322
Clear filters https://github.com/gitpython-developers/gitdb/pull/56/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/56/files
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/56/files
loose.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
pack.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
fun.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
pack.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-6e324c89bab76a2decc5aabc5173f9a6fee57a923935323ba1eae13628fc3540
stream.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-f6440f5e0cda5d1378b640ec31f3af66718c868057a5b4971612a2bc0bc8a563
lib.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-0015d5809ab50abad4dbe254f74c3778772da3072f7e6dac926d6910f6d12b36
lib.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-f4699ab918a2b8d93aa4e9364bee1e99d0b21f8d0e34c9bf13ec7368a33f4bab
test_pack.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-ceb333c42c60e67271e75f4b9e87a16bc2e63b2a51d94f55a7f068ffd79a00fb
test_pack.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-381a53e3e49e9b8e643191d0e14b4a9a34a7472a6b180e4c3010250a485cb610
compat.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-12cb0eabddef9b34bb23fd61533abcda8163359cd7fde914be79f9ad0d775136
encoding.py https://github.com/gitpython-developers/gitdb/pull/56/files#diff-b7ffdcd1be8bbc29b1b33c9a950d036872a9b862c71aace46158b38bb0954894
gitdb/db/loose.pyhttps://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
View file https://github.com/Harmon758/gitdb/blob/db9a65e3b0eceb9c52359273afb3313860e5e322/gitdb/db/loose.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/gitdb/pull/56/{{ revealButtonHref }}
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-42d81ea1bcf523de4d1c8eb4f7477e0b6ba567a9255f5688bab08a1b578bdac1
gitdb/db/pack.pyhttps://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
View file https://github.com/Harmon758/gitdb/blob/db9a65e3b0eceb9c52359273afb3313860e5e322/gitdb/db/pack.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/gitdb/pull/56/{{ revealButtonHref }}
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-dfeadb5646d6cf2d2f8eef35973a9b15cbbfed63670fd0d997f2ae3e626ecfe1
gitdb/fun.pyhttps://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
View file https://github.com/Harmon758/gitdb/blob/db9a65e3b0eceb9c52359273afb3313860e5e322/gitdb/fun.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/gitpython-developers/gitdb/pull/56/{{ revealButtonHref }}
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
https://github.com/gitpython-developers/gitdb/pull/56/files#diff-58aebf5ebed6653b7513ceebaaa611472a1efebfd1769942d5ac272f2a4d0d82
Please reload this pagehttps://github.com/gitpython-developers/gitdb/pull/56/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.