{"action":"opened","number":58,"pull_request":{"url":"https://api.github.com/repos/switch-model/switch/pulls/58","id":90301754,"html_url":"https://github.com/switch-model/switch/pull/58","diff_url":"https://github.com/switch-model/switch/pull/58.diff","patch_url":"https://github.com/switch-model/switch/pull/58.patch","issue_url":"https://api.github.com/repos/switch-model/switch/issues/58","number":58,"state":"open","locked":false,"title":"tighten Expression.construct patch and convert % to .format()","user":{"login":"mfripp","id":7928086,"avatar_url":"https://avatars.githubusercontent.com/u/7928086?v=3","gravatar_id":"","url":"https://api.github.com/users/mfripp","html_url":"https://github.com/mfripp","followers_url":"https://api.github.com/users/mfripp/followers","following_url":"https://api.github.com/users/mfripp/following{/other_user}","gists_url":"https://api.github.com/users/mfripp/gists{/gist_id}","starred_url":"https://api.github.com/users/mfripp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfripp/subscriptions","organizations_url":"https://api.github.com/users/mfripp/orgs","repos_url":"https://api.github.com/users/mfripp/repos","events_url":"https://api.github.com/users/mfripp/events{/privacy}","received_events_url":"https://api.github.com/users/mfripp/received_events","type":"User","site_admin":false},"body":"This commit fixes the patch on Expression.construct so it only applies to Pyomo 4.2 and 4.3. The corresponding bug has been fixed in Pyomo 4.4. \r\n\r\nI also changed string formatting to use `.format()` instead of `%` throughout solve.py. `%` should not be used in new code, since it will not work with Python 3.","created_at":"2016-10-20T23:52:57Z","updated_at":"2016-10-20T23:52:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/switch-model/switch/pulls/58/commits","review_comments_url":"https://api.github.com/repos/switch-model/switch/pulls/58/comments","review_comment_url":"https://api.github.com/repos/switch-model/switch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/switch-model/switch/issues/58/comments","statuses_url":"https://api.github.com/repos/switch-model/switch/statuses/578a439c4e81ec1bdc2e3458261a36b17ec43840","head":{"label":"switch-model:minor_fixes","ref":"minor_fixes","sha":"578a439c4e81ec1bdc2e3458261a36b17ec43840","user":{"login":"switch-model","id":11792892,"avatar_url":"https://avatars.githubusercontent.com/u/11792892?v=3","gravatar_id":"","url":"https://api.github.com/users/switch-model","html_url":"https://github.com/switch-model","followers_url":"https://api.github.com/users/switch-model/followers","following_url":"https://api.github.com/users/switch-model/following{/other_user}","gists_url":"https://api.github.com/users/switch-model/gists{/gist_id}","starred_url":"https://api.github.com/users/switch-model/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/switch-model/subscriptions","organizations_url":"https://api.github.com/users/switch-model/orgs","repos_url":"https://api.github.com/users/switch-model/repos","events_url":"https://api.github.com/users/switch-model/events{/privacy}","received_events_url":"https://api.github.com/users/switch-model/received_events","type":"Organization","site_admin":false},"repo":{"id":33576546,"name":"switch","full_name":"switch-model/switch","owner":{"login":"switch-model","id":11792892,"avatar_url":"https://avatars.githubusercontent.com/u/11792892?v=3","gravatar_id":"","url":"https://api.github.com/users/switch-model","html_url":"https://github.com/switch-model","followers_url":"https://api.github.com/users/switch-model/followers","following_url":"https://api.github.com/users/switch-model/following{/other_user}","gists_url":"https://api.github.com/users/switch-model/gists{/gist_id}","starred_url":"https://api.github.com/users/switch-model/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/switch-model/subscriptions","organizations_url":"https://api.github.com/users/switch-model/orgs","repos_url":"https://api.github.com/users/switch-model/repos","events_url":"https://api.github.com/users/switch-model/events{/privacy}","received_events_url":"https://api.github.com/users/switch-model/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/switch-model/switch","description":"A Pyomo / Pysp implementation of the SWITCH grid planning model","fork":false,"url":"https://api.github.com/repos/switch-model/switch","forks_url":"https://api.github.com/repos/switch-model/switch/forks","keys_url":"https://api.github.com/repos/switch-model/switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/switch-model/switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/switch-model/switch/teams","hooks_url":"https://api.github.com/repos/switch-model/switch/hooks","issue_events_url":"https://api.github.com/repos/switch-model/switch/issues/events{/number}","events_url":"https://api.github.com/repos/switch-model/switch/events","assignees_url":"https://api.github.com/repos/switch-model/switch/assignees{/user}","branches_url":"https://api.github.com/repos/switch-model/switch/branches{/branch}","tags_url":"https://api.github.com/repos/switch-model/switch/tags","blobs_url":"https://api.github.com/repos/switch-model/switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/switch-model/switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/switch-model/switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/switch-model/switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/switch-model/switch/statuses/{sha}","languages_url":"https://api.github.com/repos/switch-model/switch/languages","stargazers_url":"https://api.github.com/repos/switch-model/switch/stargazers","contributors_url":"https://api.github.com/repos/switch-model/switch/contributors","subscribers_url":"https://api.github.com/repos/switch-model/switch/subscribers","subscription_url":"https://api.github.com/repos/switch-model/switch/subscription","commits_url":"https://api.github.com/repos/switch-model/switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/switch-model/switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/switch-model/switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/switch-model/switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/switch-model/switch/contents/{+path}","compare_url":"https://api.github.com/repos/switch-model/switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/switch-model/switch/merges","archive_url":"https://api.github.com/repos/switch-model/switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/switch-model/switch/downloads","issues_url":"https://api.github.com/repos/switch-model/switch/issues{/number}","pulls_url":"https://api.github.com/repos/switch-model/switch/pulls{/number}","milestones_url":"https://api.github.com/repos/switch-model/switch/milestones{/number}","notifications_url":"https://api.github.com/repos/switch-model/switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/switch-model/switch/labels{/name}","releases_url":"https://api.github.com/repos/switch-model/switch/releases{/id}","deployments_url":"https://api.github.com/repos/switch-model/switch/deployments","created_at":"2015-04-08T00:59:34Z","updated_at":"2016-08-22T17:41:07Z","pushed_at":"2016-10-20T23:48:21Z","git_url":"git://github.com/switch-model/switch.git","ssh_url":"git@github.com:switch-model/switch.git","clone_url":"https://github.com/switch-model/switch.git","svn_url":"https://github.com/switch-model/switch","homepage":"","size":3317,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":10,"default_branch":"master"}},"base":{"label":"switch-model:master","ref":"master","sha":"50831a50d0ff1755801aae87acff2fcba6051989","user":{"login":"switch-model","id":11792892,"avatar_url":"https://avatars.githubusercontent.com/u/11792892?v=3","gravatar_id":"","url":"https://api.github.com/users/switch-model","html_url":"https://github.com/switch-model","followers_url":"https://api.github.com/users/switch-model/followers","following_url":"https://api.github.com/users/switch-model/following{/other_user}","gists_url":"https://api.github.com/users/switch-model/gists{/gist_id}","starred_url":"https://api.github.com/users/switch-model/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/switch-model/subscriptions","organizations_url":"https://api.github.com/users/switch-model/orgs","repos_url":"https://api.github.com/users/switch-model/repos","events_url":"https://api.github.com/users/switch-model/events{/privacy}","received_events_url":"https://api.github.com/users/switch-model/received_events","type":"Organization","site_admin":false},"repo":{"id":33576546,"name":"switch","full_name":"switch-model/switch","owner":{"login":"switch-model","id":11792892,"avatar_url":"https://avatars.githubusercontent.com/u/11792892?v=3","gravatar_id":"","url":"https://api.github.com/users/switch-model","html_url":"https://github.com/switch-model","followers_url":"https://api.github.com/users/switch-model/followers","following_url":"https://api.github.com/users/switch-model/following{/other_user}","gists_url":"https://api.github.com/users/switch-model/gists{/gist_id}","starred_url":"https://api.github.com/users/switch-model/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/switch-model/subscriptions","organizations_url":"https://api.github.com/users/switch-model/orgs","repos_url":"https://api.github.com/users/switch-model/repos","events_url":"https://api.github.com/users/switch-model/events{/privacy}","received_events_url":"https://api.github.com/users/switch-model/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/switch-model/switch","description":"A Pyomo / Pysp implementation of the SWITCH grid planning model","fork":false,"url":"https://api.github.com/repos/switch-model/switch","forks_url":"https://api.github.com/repos/switch-model/switch/forks","keys_url":"https://api.github.com/repos/switch-model/switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/switch-model/switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/switch-model/switch/teams","hooks_url":"https://api.github.com/repos/switch-model/switch/hooks","issue_events_url":"https://api.github.com/repos/switch-model/switch/issues/events{/number}","events_url":"https://api.github.com/repos/switch-model/switch/events","assignees_url":"https://api.github.com/repos/switch-model/switch/assignees{/user}","branches_url":"https://api.github.com/repos/switch-model/switch/branches{/branch}","tags_url":"https://api.github.com/repos/switch-model/switch/tags","blobs_url":"https://api.github.com/repos/switch-model/switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/switch-model/switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/switch-model/switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/switch-model/switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/switch-model/switch/statuses/{sha}","languages_url":"https://api.github.com/repos/switch-model/switch/languages","stargazers_url":"https://api.github.com/repos/switch-model/switch/stargazers","contributors_url":"https://api.github.com/repos/switch-model/switch/contributors","subscribers_url":"https://api.github.com/repos/switch-model/switch/subscribers","subscription_url":"https://api.github.com/repos/switch-model/switch/subscription","commits_url":"https://api.github.com/repos/switch-model/switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/switch-model/switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/switch-model/switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/switch-model/switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/switch-model/switch/contents/{+path}","compare_url":"https://api.github.com/repos/switch-model/switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/switch-model/switch/merges","archive_url":"https://api.github.com/repos/switch-model/switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/switch-model/switch/downloads","issues_url":"https://api.github.com/repos/switch-model/switch/issues{/number}","pulls_url":"https://api.github.com/repos/switch-model/switch/pulls{/number}","milestones_url":"https://api.github.com/repos/switch-model/switch/milestones{/number}","notifications_url":"https://api.github.com/repos/switch-model/switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/switch-model/switch/labels{/name}","releases_url":"https://api.github.com/repos/switch-model/switch/releases{/id}","deployments_url":"https://api.github.com/repos/switch-model/switch/deployments","created_at":"2015-04-08T00:59:34Z","updated_at":"2016-08-22T17:41:07Z","pushed_at":"2016-10-20T23:48:21Z","git_url":"git://github.com/switch-model/switch.git","ssh_url":"git@github.com:switch-model/switch.git","clone_url":"https://github.com/switch-model/switch.git","svn_url":"https://github.com/switch-model/switch","homepage":"","size":3317,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/switch-model/switch/pulls/58"},"html":{"href":"https://github.com/switch-model/switch/pull/58"},"issue":{"href":"https://api.github.com/repos/switch-model/switch/issues/58"},"comments":{"href":"https://api.github.com/repos/switch-model/switch/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/switch-model/switch/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/switch-model/switch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/switch-model/switch/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/switch-model/switch/statuses/578a439c4e81ec1bdc2e3458261a36b17ec43840"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":20,"changed_files":1}}
{"actor":{"display_login":"mfripp"}}