{"action":"opened","number":5570,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570","id":51964845,"html_url":"https://github.com/matplotlib/matplotlib/pull/5570","diff_url":"https://github.com/matplotlib/matplotlib/pull/5570.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/5570.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5570","number":5570,"state":"open","locked":false,"title":"use base64.encodestring on python2.7","user":{"login":"tomoemon","id":1381362,"avatar_url":"https://avatars.githubusercontent.com/u/1381362?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoemon","html_url":"https://github.com/tomoemon","followers_url":"https://api.github.com/users/tomoemon/followers","following_url":"https://api.github.com/users/tomoemon/following{/other_user}","gists_url":"https://api.github.com/users/tomoemon/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoemon/subscriptions","organizations_url":"https://api.github.com/users/tomoemon/orgs","repos_url":"https://api.github.com/users/tomoemon/repos","events_url":"https://api.github.com/users/tomoemon/events{/privacy}","received_events_url":"https://api.github.com/users/tomoemon/received_events","type":"User","site_admin":false},"body":"This PR fixes #5508.\r\nI don't know the standard way to solve version compatibility issues in this project. So I chose explicit way.\r\n\r\nI've tested a code below with IPython notebook on Python2.7.5 and Python3.4.2.\r\n```python\r\nget_ipython().enable_matplotlib(\"inline\")\r\n\r\nimport os\r\nimport numpy as np\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nmpl.style.use('ggplot')\r\n\r\nmpl.rcParams['animation.html'] = 'html5'\r\nmpl.rcParams['animation.ffmpeg_path'] = os.path.expanduser(\"~/bin/ffmpeg\")\r\n\r\nfig = plt.figure()\r\nx = np.arange(500)\r\nframe_list = []\r\n\r\nfor a in range(10):\r\n    frame = plt.plot(x, a * x ** 2, lw=2)\r\n    frame_list.append(frame)\r\n\r\nfrom matplotlib import animation\r\nanimation.ArtistAnimation(fig, frame_list, interval = 500)\r\n```\r\n","created_at":"2015-11-27T06:53:31Z","updated_at":"2015-11-27T06:53:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5570/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/c0da9511049e732cc9ab520eed162c0b074420b3","head":{"label":"tomoemon:fix_base64_animation","ref":"fix_base64_animation","sha":"c0da9511049e732cc9ab520eed162c0b074420b3","user":{"login":"tomoemon","id":1381362,"avatar_url":"https://avatars.githubusercontent.com/u/1381362?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoemon","html_url":"https://github.com/tomoemon","followers_url":"https://api.github.com/users/tomoemon/followers","following_url":"https://api.github.com/users/tomoemon/following{/other_user}","gists_url":"https://api.github.com/users/tomoemon/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoemon/subscriptions","organizations_url":"https://api.github.com/users/tomoemon/orgs","repos_url":"https://api.github.com/users/tomoemon/repos","events_url":"https://api.github.com/users/tomoemon/events{/privacy}","received_events_url":"https://api.github.com/users/tomoemon/received_events","type":"User","site_admin":false},"repo":{"id":46906363,"name":"matplotlib","full_name":"tomoemon/matplotlib","owner":{"login":"tomoemon","id":1381362,"avatar_url":"https://avatars.githubusercontent.com/u/1381362?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoemon","html_url":"https://github.com/tomoemon","followers_url":"https://api.github.com/users/tomoemon/followers","following_url":"https://api.github.com/users/tomoemon/following{/other_user}","gists_url":"https://api.github.com/users/tomoemon/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoemon/subscriptions","organizations_url":"https://api.github.com/users/tomoemon/orgs","repos_url":"https://api.github.com/users/tomoemon/repos","events_url":"https://api.github.com/users/tomoemon/events{/privacy}","received_events_url":"https://api.github.com/users/tomoemon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomoemon/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/tomoemon/matplotlib","forks_url":"https://api.github.com/repos/tomoemon/matplotlib/forks","keys_url":"https://api.github.com/repos/tomoemon/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomoemon/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomoemon/matplotlib/teams","hooks_url":"https://api.github.com/repos/tomoemon/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/tomoemon/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/tomoemon/matplotlib/events","assignees_url":"https://api.github.com/repos/tomoemon/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/tomoemon/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/tomoemon/matplotlib/tags","blobs_url":"https://api.github.com/repos/tomoemon/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomoemon/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomoemon/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomoemon/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomoemon/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/tomoemon/matplotlib/languages","stargazers_url":"https://api.github.com/repos/tomoemon/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/tomoemon/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/tomoemon/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/tomoemon/matplotlib/subscription","commits_url":"https://api.github.com/repos/tomoemon/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomoemon/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomoemon/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomoemon/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomoemon/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/tomoemon/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomoemon/matplotlib/merges","archive_url":"https://api.github.com/repos/tomoemon/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomoemon/matplotlib/downloads","issues_url":"https://api.github.com/repos/tomoemon/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/tomoemon/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/tomoemon/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/tomoemon/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomoemon/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/tomoemon/matplotlib/releases{/id}","created_at":"2015-11-26T05:41:55Z","updated_at":"2015-11-26T05:42:14Z","pushed_at":"2015-11-27T06:38:25Z","git_url":"git://github.com/tomoemon/matplotlib.git","ssh_url":"git@github.com:tomoemon/matplotlib.git","clone_url":"https://github.com/tomoemon/matplotlib.git","svn_url":"https://github.com/tomoemon/matplotlib","homepage":"http://matplotlib.org/","size":226264,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matplotlib:master","ref":"master","sha":"6245d4e3da4cb22dc5623107721e51bb65fa7310","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","created_at":"2011-02-19T03:17:12Z","updated_at":"2015-11-27T06:32:56Z","pushed_at":"2015-11-26T10:07:13Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":288613,"stargazers_count":3047,"watchers_count":3047,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1544,"mirror_url":null,"open_issues_count":782,"forks":1544,"open_issues":782,"watchers":3047,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/5570"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/5570"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/5570/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5570/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/c0da9511049e732cc9ab520eed162c0b074420b3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}