[PR #56] [MERGED] Python3 support #743

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/56
Author: @joohoi
Created: 6/5/2015
Status: Merged
Merged: 6/8/2015
Merged by: @plamere

Base: masterHead: python3


📝 Commits (10+)

  • 1f833af Initial run of 2to3
  • f19682c Fixed (byte)string handling when calling base64 lib
  • 3d46d7a Removed old comment, as the API is fixed in this regard
  • d08f7a8 Support print() as function in Python 2
  • d6a14bc Urllib compatibility fix to support both python 2 & 3
  • 1737a55 Fix for python 2 to use the safe raw_input() per default
  • a3a68be ascii decode in _refresh_access_token
  • a541b3b Support both Python 2 & 3 base64 library
  • c944cc7 Fixes for the remaining base64 lib references
  • 660f34b Close the connection when done

📊 Changes

33 files changed (+140 additions, -114 deletions)

View changed files

📝 docs/conf.py (+8 -8)
📝 examples/add_a_saved_track.py (+2 -2)
📝 examples/add_tracks_to_playlist.py (+3 -3)
📝 examples/artist_albums.py (+2 -2)
📝 examples/artist_discography.py (+9 -9)
📝 examples/contains_a_saved_track.py (+2 -2)
📝 examples/create_playlist.py (+2 -2)
📝 examples/delete_a_saved_track.py (+2 -2)
📝 examples/remove_specific_tracks_from_playlist.py (+2 -2)
📝 examples/remove_tracks_from_playlist.py (+2 -2)
📝 examples/replace_tracks_in_playlist.py (+2 -2)
📝 examples/show_artist_top_tracks.py (+1 -1)
📝 examples/show_featured_playlists.py (+5 -5)
📝 examples/show_my_saved_tracks.py (+3 -3)
📝 examples/show_new_releases.py (+4 -4)
📝 examples/show_related.py (+3 -3)
📝 examples/show_tracks.py (+2 -2)
📝 examples/simple0.py (+1 -1)
📝 examples/simple1.py (+1 -1)
📝 examples/simple2.py (+4 -4)

...and 13 more files

📄 Description

Adds python3 support without breaking for python2, all tests are ok.


🔄 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/56 **Author:** [@joohoi](https://github.com/joohoi) **Created:** 6/5/2015 **Status:** ✅ Merged **Merged:** 6/8/2015 **Merged by:** [@plamere](https://github.com/plamere) **Base:** `master` ← **Head:** `python3` --- ### 📝 Commits (10+) - [`1f833af`](https://github.com/spotipy-dev/spotipy/commit/1f833afa455858ee53054a128bcefbda879bdd1d) Initial run of 2to3 - [`f19682c`](https://github.com/spotipy-dev/spotipy/commit/f19682cc803420b005c4ed4f3541577e6184f33a) Fixed (byte)string handling when calling base64 lib - [`3d46d7a`](https://github.com/spotipy-dev/spotipy/commit/3d46d7a0355753381397e026dea2d6e9889736ec) Removed old comment, as the API is fixed in this regard - [`d08f7a8`](https://github.com/spotipy-dev/spotipy/commit/d08f7a82dcee4a018d3c8d92bfe03b87294b445e) Support print() as function in Python 2 - [`d6a14bc`](https://github.com/spotipy-dev/spotipy/commit/d6a14bc83dd4a19945314b14d8bd6ed59a0c154e) Urllib compatibility fix to support both python 2 & 3 - [`1737a55`](https://github.com/spotipy-dev/spotipy/commit/1737a550d319e59f5c139b5dc5e156b93495eb6a) Fix for python 2 to use the safe raw_input() per default - [`a3a68be`](https://github.com/spotipy-dev/spotipy/commit/a3a68be7bc1fd46133c5540073932611c4a3a409) ascii decode in _refresh_access_token - [`a541b3b`](https://github.com/spotipy-dev/spotipy/commit/a541b3bb819b61de3809cd1c064a5a5a390cc4e5) Support both Python 2 & 3 base64 library - [`c944cc7`](https://github.com/spotipy-dev/spotipy/commit/c944cc772ff2cae8f14e01aac6e7fc87cc7bf4aa) Fixes for the remaining base64 lib references - [`660f34b`](https://github.com/spotipy-dev/spotipy/commit/660f34b343f92bc4bcbe3fdb0dcd0f8c43677cb2) Close the connection when done ### 📊 Changes **33 files changed** (+140 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `docs/conf.py` (+8 -8) 📝 `examples/add_a_saved_track.py` (+2 -2) 📝 `examples/add_tracks_to_playlist.py` (+3 -3) 📝 `examples/artist_albums.py` (+2 -2) 📝 `examples/artist_discography.py` (+9 -9) 📝 `examples/contains_a_saved_track.py` (+2 -2) 📝 `examples/create_playlist.py` (+2 -2) 📝 `examples/delete_a_saved_track.py` (+2 -2) 📝 `examples/remove_specific_tracks_from_playlist.py` (+2 -2) 📝 `examples/remove_tracks_from_playlist.py` (+2 -2) 📝 `examples/replace_tracks_in_playlist.py` (+2 -2) 📝 `examples/show_artist_top_tracks.py` (+1 -1) 📝 `examples/show_featured_playlists.py` (+5 -5) 📝 `examples/show_my_saved_tracks.py` (+3 -3) 📝 `examples/show_new_releases.py` (+4 -4) 📝 `examples/show_related.py` (+3 -3) 📝 `examples/show_tracks.py` (+2 -2) 📝 `examples/simple0.py` (+1 -1) 📝 `examples/simple1.py` (+1 -1) 📝 `examples/simple2.py` (+4 -4) _...and 13 more files_ </details> ### 📄 Description Adds python3 support without breaking for python2, all tests are ok. --- <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:27 +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#743
No description provided.