{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7","id":37286683,"html_url":"https://github.com/nyphilarchive/PerformanceHistory/pull/7","diff_url":"https://github.com/nyphilarchive/PerformanceHistory/pull/7.diff","patch_url":"https://github.com/nyphilarchive/PerformanceHistory/pull/7.patch","issue_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/7","number":7,"state":"closed","locked":false,"title":"Trial kludge to fix ampersands in Python reformat script","user":{"login":"hamlet82","id":7864091,"avatar_url":"https://avatars.githubusercontent.com/u/7864091?v=3","gravatar_id":"","url":"https://api.github.com/users/hamlet82","html_url":"https://github.com/hamlet82","followers_url":"https://api.github.com/users/hamlet82/followers","following_url":"https://api.github.com/users/hamlet82/following{/other_user}","gists_url":"https://api.github.com/users/hamlet82/gists{/gist_id}","starred_url":"https://api.github.com/users/hamlet82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamlet82/subscriptions","organizations_url":"https://api.github.com/users/hamlet82/orgs","repos_url":"https://api.github.com/users/hamlet82/repos","events_url":"https://api.github.com/users/hamlet82/events{/privacy}","received_events_url":"https://api.github.com/users/hamlet82/received_events","type":"User","site_admin":false},"body":"This is a lousy hack that attempts to restore escaping to ampersands from the original XML. I've added each line to a list, rather than writing to a file. Then loop over the list and replace '&' with '&amp;' before writing to the file. Not pretty, but should be functional, I hope.","created_at":"2015-06-09T18:55:22Z","updated_at":"2015-06-09T19:55:24Z","closed_at":"2015-06-09T19:55:24Z","merged_at":"2015-06-09T19:55:24Z","merge_commit_sha":"d63a320023b0a2df3121025fb07ea4a01dadc338","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7/commits","review_comments_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7/comments","review_comment_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/7/comments","statuses_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/statuses/41d9be20d3f366d8ad4c0ad6aef38c590949b491","head":{"label":"hamlet82:master","ref":"master","sha":"41d9be20d3f366d8ad4c0ad6aef38c590949b491","user":{"login":"hamlet82","id":7864091,"avatar_url":"https://avatars.githubusercontent.com/u/7864091?v=3","gravatar_id":"","url":"https://api.github.com/users/hamlet82","html_url":"https://github.com/hamlet82","followers_url":"https://api.github.com/users/hamlet82/followers","following_url":"https://api.github.com/users/hamlet82/following{/other_user}","gists_url":"https://api.github.com/users/hamlet82/gists{/gist_id}","starred_url":"https://api.github.com/users/hamlet82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamlet82/subscriptions","organizations_url":"https://api.github.com/users/hamlet82/orgs","repos_url":"https://api.github.com/users/hamlet82/repos","events_url":"https://api.github.com/users/hamlet82/events{/privacy}","received_events_url":"https://api.github.com/users/hamlet82/received_events","type":"User","site_admin":false},"repo":{"id":31050855,"name":"PerformanceHistory","full_name":"hamlet82/PerformanceHistory","owner":{"login":"hamlet82","id":7864091,"avatar_url":"https://avatars.githubusercontent.com/u/7864091?v=3","gravatar_id":"","url":"https://api.github.com/users/hamlet82","html_url":"https://github.com/hamlet82","followers_url":"https://api.github.com/users/hamlet82/followers","following_url":"https://api.github.com/users/hamlet82/following{/other_user}","gists_url":"https://api.github.com/users/hamlet82/gists{/gist_id}","starred_url":"https://api.github.com/users/hamlet82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamlet82/subscriptions","organizations_url":"https://api.github.com/users/hamlet82/orgs","repos_url":"https://api.github.com/users/hamlet82/repos","events_url":"https://api.github.com/users/hamlet82/events{/privacy}","received_events_url":"https://api.github.com/users/hamlet82/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hamlet82/PerformanceHistory","description":"New York Philharmonic Performance History Metadata","fork":true,"url":"https://api.github.com/repos/hamlet82/PerformanceHistory","forks_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/forks","keys_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/teams","hooks_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/hooks","issue_events_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/issues/events{/number}","events_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/events","assignees_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/assignees{/user}","branches_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/branches{/branch}","tags_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/tags","blobs_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/git/refs{/sha}","trees_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/statuses/{sha}","languages_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/languages","stargazers_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/stargazers","contributors_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/contributors","subscribers_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/subscribers","subscription_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/subscription","commits_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/commits{/sha}","git_commits_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/git/commits{/sha}","comments_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/comments{/number}","issue_comment_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/issues/comments{/number}","contents_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/contents/{+path}","compare_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/merges","archive_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/downloads","issues_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/issues{/number}","pulls_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/pulls{/number}","milestones_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/milestones{/number}","notifications_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/labels{/name}","releases_url":"https://api.github.com/repos/hamlet82/PerformanceHistory/releases{/id}","created_at":"2015-02-20T04:23:27Z","updated_at":"2015-02-25T05:10:48Z","pushed_at":"2015-06-09T18:52:45Z","git_url":"git://github.com/hamlet82/PerformanceHistory.git","ssh_url":"git@github.com:hamlet82/PerformanceHistory.git","clone_url":"https://github.com/hamlet82/PerformanceHistory.git","svn_url":"https://github.com/hamlet82/PerformanceHistory","homepage":null,"size":12761,"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":"nyphilarchive:master","ref":"master","sha":"8580768f1023731cbb96c3c5d759e9f855e2527c","user":{"login":"nyphilarchive","id":10927730,"avatar_url":"https://avatars.githubusercontent.com/u/10927730?v=3","gravatar_id":"","url":"https://api.github.com/users/nyphilarchive","html_url":"https://github.com/nyphilarchive","followers_url":"https://api.github.com/users/nyphilarchive/followers","following_url":"https://api.github.com/users/nyphilarchive/following{/other_user}","gists_url":"https://api.github.com/users/nyphilarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/nyphilarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyphilarchive/subscriptions","organizations_url":"https://api.github.com/users/nyphilarchive/orgs","repos_url":"https://api.github.com/users/nyphilarchive/repos","events_url":"https://api.github.com/users/nyphilarchive/events{/privacy}","received_events_url":"https://api.github.com/users/nyphilarchive/received_events","type":"Organization","site_admin":false},"repo":{"id":30550915,"name":"PerformanceHistory","full_name":"nyphilarchive/PerformanceHistory","owner":{"login":"nyphilarchive","id":10927730,"avatar_url":"https://avatars.githubusercontent.com/u/10927730?v=3","gravatar_id":"","url":"https://api.github.com/users/nyphilarchive","html_url":"https://github.com/nyphilarchive","followers_url":"https://api.github.com/users/nyphilarchive/followers","following_url":"https://api.github.com/users/nyphilarchive/following{/other_user}","gists_url":"https://api.github.com/users/nyphilarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/nyphilarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyphilarchive/subscriptions","organizations_url":"https://api.github.com/users/nyphilarchive/orgs","repos_url":"https://api.github.com/users/nyphilarchive/repos","events_url":"https://api.github.com/users/nyphilarchive/events{/privacy}","received_events_url":"https://api.github.com/users/nyphilarchive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyphilarchive/PerformanceHistory","description":"New York Philharmonic Performance History Metadata","fork":false,"url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory","forks_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/forks","keys_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/teams","hooks_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/hooks","issue_events_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/events{/number}","events_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/events","assignees_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/assignees{/user}","branches_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/branches{/branch}","tags_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/tags","blobs_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/statuses/{sha}","languages_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/languages","stargazers_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/stargazers","contributors_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/contributors","subscribers_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/subscribers","subscription_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/subscription","commits_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/contents/{+path}","compare_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/merges","archive_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/downloads","issues_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues{/number}","pulls_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls{/number}","milestones_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/milestones{/number}","notifications_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/labels{/name}","releases_url":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/releases{/id}","created_at":"2015-02-09T18:24:09Z","updated_at":"2015-05-16T13:56:09Z","pushed_at":"2015-06-09T19:55:24Z","git_url":"git://github.com/nyphilarchive/PerformanceHistory.git","ssh_url":"git@github.com:nyphilarchive/PerformanceHistory.git","clone_url":"https://github.com/nyphilarchive/PerformanceHistory.git","svn_url":"https://github.com/nyphilarchive/PerformanceHistory","homepage":null,"size":13198,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7"},"html":{"href":"https://github.com/nyphilarchive/PerformanceHistory/pull/7"},"issue":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/7"},"comments":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/nyphilarchive/PerformanceHistory/statuses/41d9be20d3f366d8ad4c0ad6aef38c590949b491"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mjbrodsky","id":1797278,"avatar_url":"https://avatars.githubusercontent.com/u/1797278?v=3","gravatar_id":"","url":"https://api.github.com/users/mjbrodsky","html_url":"https://github.com/mjbrodsky","followers_url":"https://api.github.com/users/mjbrodsky/followers","following_url":"https://api.github.com/users/mjbrodsky/following{/other_user}","gists_url":"https://api.github.com/users/mjbrodsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbrodsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbrodsky/subscriptions","organizations_url":"https://api.github.com/users/mjbrodsky/orgs","repos_url":"https://api.github.com/users/mjbrodsky/repos","events_url":"https://api.github.com/users/mjbrodsky/events{/privacy}","received_events_url":"https://api.github.com/users/mjbrodsky/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":49,"deletions":43,"changed_files":1}}