From d08f7a82dcee4a018d3c8d92bfe03b87294b445e Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Fri, 5 Jun 2015 12:14:13 +0300 Subject: [PATCH] Support print() as function in Python 2 --- spotipy/client.py | 2 +- spotipy/oauth2.py | 1 + spotipy/util.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spotipy/client.py b/spotipy/client.py index 95b16ef..868c83b 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -1,7 +1,7 @@ # coding: utf-8 - +from __future__ import print_function import sys import base64 import requests diff --git a/spotipy/oauth2.py b/spotipy/oauth2.py index d1b6211..7827fd4 100644 --- a/spotipy/oauth2.py +++ b/spotipy/oauth2.py @@ -1,4 +1,5 @@ +from __future__ import print_function import base64 import urllib.request, urllib.parse, urllib.error import requests diff --git a/spotipy/util.py b/spotipy/util.py index 025b672..8e7827d 100644 --- a/spotipy/util.py +++ b/spotipy/util.py @@ -1,6 +1,7 @@ # shows a user's playlists (need to be authenticated via oauth) +from __future__ import print_function import os import subprocess from . import oauth2