[PR #149] [MERGED] Use six to simplify python 2/3 compatibilty code where possible #797

Closed
opened 2026-02-28 00:01:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/149
Author: @mbirtwell
Created: 1/7/2017
Status: Merged
Merged: 1/7/2017
Merged by: @plamere

Base: masterHead: python3_with_six


📝 Commits (1)

  • 72a2fe4 Use six to simplify python 2/3 compatibilty code where possible

📊 Changes

5 files changed (+22 additions, -31 deletions)

View changed files

📝 requirements.txt (+1 -0)
📝 setup.py (+4 -1)
📝 spotipy/client.py (+3 -6)
📝 spotipy/oauth2.py (+13 -24)
📝 tox.ini (+1 -0)

📄 Description

This doesn't actually add any new python 2/3 compatibility. What it does do is use the six module where ever possible to simplify the code that needs to be 2/3 aware.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/149 **Author:** [@mbirtwell](https://github.com/mbirtwell) **Created:** 1/7/2017 **Status:** ✅ Merged **Merged:** 1/7/2017 **Merged by:** [@plamere](https://github.com/plamere) **Base:** `master` ← **Head:** `python3_with_six` --- ### 📝 Commits (1) - [`72a2fe4`](https://github.com/spotipy-dev/spotipy/commit/72a2fe489dc8d9750ee993335b75cea8b65c52d6) Use six to simplify python 2/3 compatibilty code where possible ### 📊 Changes **5 files changed** (+22 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `requirements.txt` (+1 -0) 📝 `setup.py` (+4 -1) 📝 `spotipy/client.py` (+3 -6) 📝 `spotipy/oauth2.py` (+13 -24) 📝 `tox.ini` (+1 -0) </details> ### 📄 Description This doesn't actually add any new python 2/3 compatibility. What it does do is use the six module where ever possible to simplify the code that needs to be 2/3 aware. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:01:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#797
No description provided.