Skip to content

Commit

Permalink
Py3 print (and pep8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 5, 2014
1 parent 28443a0 commit 411f648
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/show_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
else:
urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'


sp = spotipy.Spotify()
artist = sp.artist(urn)
pprint.pprint(artist)

1 change: 0 additions & 1 deletion examples/show_track_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
sp = spotipy.Spotify()
track = sp.track(urn)
pprint.pprint(track)

4 changes: 2 additions & 2 deletions examples/tracks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# shows tracks for the given artist

from __future__ import print_function
import spotipy
import sys
sp = spotipy.Spotify()
Expand All @@ -8,5 +9,4 @@
artist_name = ' '.join(sys.argv[1:])
tracks = sp.search(q=artist_name, limit=20)
for i, t in enumerate(tracks['tracks']):
print ' ', i, t['name']

print(' ', i, t['name'])

0 comments on commit 411f648

Please sign in to comment.