diff --git a/example/upload.py b/example/upload.py index 96650e5..b8a3c3a 100644 --- a/example/upload.py +++ b/example/upload.py @@ -21,7 +21,7 @@ # Create a variable with a hard coded path to your file system file_name = '' -print 'Uploading: %s' % file_name +print('Uploading: %s' % file_name) try: # Upload the file and include the video title and description. @@ -33,7 +33,7 @@ # Get the metadata response from the upload and log out the Vimeo.com url video_data = client.get(uri + '?fields=link').json() - print '"%s" has been uploaded to %s' % (file_name, video_data['link']) + print('"%s" has been uploaded to %s' % (file_name, video_data['link'])) # Make an API call to edit the title and description of the video. client.patch(uri, data={ @@ -42,16 +42,16 @@ "Python SDK." }) - print 'The title and description for %s has been edited.' % uri + print('The title and description for %s has been edited.' % uri) # Make an API call to see if the video is finished transcoding. video_data = client.get(uri + '?fields=transcode.status').json() - print 'The transcode status for %s is: %s' % ( + print('The transcode status for %s is: %s' % ( uri, video_data['transcode']['status'] - ) + )) except vimeo.exceptions.VideoUploadFailure as e: # We may have had an error. We can't resolve it here necessarily, so # report it to the user. - print 'Error uploading %s' % file_name - print 'Server reported: %s' % e.message \ No newline at end of file + print('Error uploading %s' % file_name) + print('Server reported: %s' % e.message) \ No newline at end of file diff --git a/setup.py b/setup.py index ec055f0..5a8a211 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ author_email='support@vimeo.com', license='Apache License, Version 2.0, January 2004', packages=['vimeo', 'vimeo/auth'], - install_requires=['requests>=2.4.0', 'tuspy>=0.2.1'], + install_requires=['requests>=2.4.0', 'tuspy==0.2.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console',