{"action":"created","comment":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/comments/165495155","pull_request_review_id":93444561,"id":165495155,"diff_hunk":"@@ -76,13 +77,13 @@\n         {% comment We replace '.%l' with the actual language only when it occurs as an extension at the end of the string and only when %}\n         {% comment there isn't another file with that name. This allows to securily reverse the replacement and should work great in %}\n         {% comment the common case. Yet, it still allows the marginal case of both 'foo.%l' and 'foo.c' in the submission format. %}\n-        {% set files = t.files.keys() + t.managers.keys() %}\n+        {% set files = list(itertools.chain(iterkeys(t.files), iterkeys(t.managers))) %}","path":"cms/server/contest/templates/user_test_row.html","position":10,"original_position":10,"commit_id":"a310007e19fac15078b7380894f9f761bd4ca933","original_commit_id":"759f4dc1e4a86e335390f7cc4ae835a3cd44f9ad","user":{"login":"stefano-maggiolo","id":485490,"avatar_url":"https://avatars2.githubusercontent.com/u/485490?v=4","gravatar_id":"","url":"https://api.github.com/users/stefano-maggiolo","html_url":"https://github.com/stefano-maggiolo","followers_url":"https://api.github.com/users/stefano-maggiolo/followers","following_url":"https://api.github.com/users/stefano-maggiolo/following{/other_user}","gists_url":"https://api.github.com/users/stefano-maggiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/stefano-maggiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefano-maggiolo/subscriptions","organizations_url":"https://api.github.com/users/stefano-maggiolo/orgs","repos_url":"https://api.github.com/users/stefano-maggiolo/repos","events_url":"https://api.github.com/users/stefano-maggiolo/events{/privacy}","received_events_url":"https://api.github.com/users/stefano-maggiolo/received_events","type":"User","site_admin":false},"body":"Why not list(a) + list(b) and one import less?","created_at":"2018-02-01T21:36:59Z","updated_at":"2018-02-01T21:49:54Z","html_url":"https://github.com/cms-dev/cms/pull/824#discussion_r165495155","pull_request_url":"https://api.github.com/repos/cms-dev/cms/pulls/824","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments/165495155"},"html":{"href":"https://github.com/cms-dev/cms/pull/824#discussion_r165495155"},"pull_request":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/824"}}},"pull_request":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/824","id":166491143,"html_url":"https://github.com/cms-dev/cms/pull/824","diff_url":"https://github.com/cms-dev/cms/pull/824.diff","patch_url":"https://github.com/cms-dev/cms/pull/824.patch","issue_url":"https://api.github.com/repos/cms-dev/cms/issues/824","number":824,"state":"open","locked":false,"title":"Move codebase to Py2+3 [2]","user":{"login":"lerks","id":120810,"avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"body":"This is the second in a series of pull requests that aim at making our codebase compatible with Python 2 and Python 3 at the same time.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/cms-dev/cms/824)\n<!-- Reviewable:end -->\n","created_at":"2018-02-01T10:01:06Z","updated_at":"2018-02-01T21:49:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8b5d84484d6ae76eb2eba377d7a94c4afb8eb15","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/cms-dev/cms/pulls/824/commits","review_comments_url":"https://api.github.com/repos/cms-dev/cms/pulls/824/comments","review_comment_url":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-dev/cms/issues/824/comments","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/a310007e19fac15078b7380894f9f761bd4ca933","head":{"label":"lerks:py3_2","ref":"py3_2","sha":"a310007e19fac15078b7380894f9f761bd4ca933","user":{"login":"lerks","id":120810,"avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"repo":{"id":6427522,"name":"cms","full_name":"lerks/cms","owner":{"login":"lerks","id":120810,"avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lerks/cms","description":"Contest Management System","fork":true,"url":"https://api.github.com/repos/lerks/cms","forks_url":"https://api.github.com/repos/lerks/cms/forks","keys_url":"https://api.github.com/repos/lerks/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lerks/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lerks/cms/teams","hooks_url":"https://api.github.com/repos/lerks/cms/hooks","issue_events_url":"https://api.github.com/repos/lerks/cms/issues/events{/number}","events_url":"https://api.github.com/repos/lerks/cms/events","assignees_url":"https://api.github.com/repos/lerks/cms/assignees{/user}","branches_url":"https://api.github.com/repos/lerks/cms/branches{/branch}","tags_url":"https://api.github.com/repos/lerks/cms/tags","blobs_url":"https://api.github.com/repos/lerks/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lerks/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lerks/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/lerks/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lerks/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/lerks/cms/languages","stargazers_url":"https://api.github.com/repos/lerks/cms/stargazers","contributors_url":"https://api.github.com/repos/lerks/cms/contributors","subscribers_url":"https://api.github.com/repos/lerks/cms/subscribers","subscription_url":"https://api.github.com/repos/lerks/cms/subscription","commits_url":"https://api.github.com/repos/lerks/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/lerks/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/lerks/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/lerks/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/lerks/cms/contents/{+path}","compare_url":"https://api.github.com/repos/lerks/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lerks/cms/merges","archive_url":"https://api.github.com/repos/lerks/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lerks/cms/downloads","issues_url":"https://api.github.com/repos/lerks/cms/issues{/number}","pulls_url":"https://api.github.com/repos/lerks/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/lerks/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/lerks/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lerks/cms/labels{/name}","releases_url":"https://api.github.com/repos/lerks/cms/releases{/id}","deployments_url":"https://api.github.com/repos/lerks/cms/deployments","created_at":"2012-10-28T13:01:06Z","updated_at":"2017-04-05T21:56:44Z","pushed_at":"2018-02-01T09:59:17Z","git_url":"git://github.com/lerks/cms.git","ssh_url":"git@github.com:lerks/cms.git","clone_url":"https://github.com/lerks/cms.git","svn_url":"https://github.com/lerks/cms","homepage":"","size":14464,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cms-dev:py3","ref":"py3","sha":"7a29818b961cbfa77471e866d098eb0477fa2aad","user":{"login":"cms-dev","id":1671612,"avatar_url":"https://avatars0.githubusercontent.com/u/1671612?v=4","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":2504741,"name":"cms","full_name":"cms-dev/cms","owner":{"login":"cms-dev","id":1671612,"avatar_url":"https://avatars0.githubusercontent.com/u/1671612?v=4","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-dev/cms","description":"Contest Management System","fork":false,"url":"https://api.github.com/repos/cms-dev/cms","forks_url":"https://api.github.com/repos/cms-dev/cms/forks","keys_url":"https://api.github.com/repos/cms-dev/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-dev/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-dev/cms/teams","hooks_url":"https://api.github.com/repos/cms-dev/cms/hooks","issue_events_url":"https://api.github.com/repos/cms-dev/cms/issues/events{/number}","events_url":"https://api.github.com/repos/cms-dev/cms/events","assignees_url":"https://api.github.com/repos/cms-dev/cms/assignees{/user}","branches_url":"https://api.github.com/repos/cms-dev/cms/branches{/branch}","tags_url":"https://api.github.com/repos/cms-dev/cms/tags","blobs_url":"https://api.github.com/repos/cms-dev/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-dev/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-dev/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-dev/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-dev/cms/languages","stargazers_url":"https://api.github.com/repos/cms-dev/cms/stargazers","contributors_url":"https://api.github.com/repos/cms-dev/cms/contributors","subscribers_url":"https://api.github.com/repos/cms-dev/cms/subscribers","subscription_url":"https://api.github.com/repos/cms-dev/cms/subscription","commits_url":"https://api.github.com/repos/cms-dev/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-dev/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-dev/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-dev/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-dev/cms/contents/{+path}","compare_url":"https://api.github.com/repos/cms-dev/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-dev/cms/merges","archive_url":"https://api.github.com/repos/cms-dev/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-dev/cms/downloads","issues_url":"https://api.github.com/repos/cms-dev/cms/issues{/number}","pulls_url":"https://api.github.com/repos/cms-dev/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-dev/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-dev/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-dev/cms/labels{/name}","releases_url":"https://api.github.com/repos/cms-dev/cms/releases{/id}","deployments_url":"https://api.github.com/repos/cms-dev/cms/deployments","created_at":"2011-10-03T13:37:02Z","updated_at":"2018-01-30T02:49:48Z","pushed_at":"2018-02-01T10:01:17Z","git_url":"git://github.com/cms-dev/cms.git","ssh_url":"git@github.com:cms-dev/cms.git","clone_url":"https://github.com/cms-dev/cms.git","svn_url":"https://github.com/cms-dev/cms","homepage":"http://cms-dev.github.io/","size":15029,"stargazers_count":370,"watchers_count":370,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":211,"mirror_url":null,"archived":false,"open_issues_count":137,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":211,"open_issues":137,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/824"},"html":{"href":"https://github.com/cms-dev/cms/pull/824"},"issue":{"href":"https://api.github.com/repos/cms-dev/cms/issues/824"},"comments":{"href":"https://api.github.com/repos/cms-dev/cms/issues/824/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/824/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/824/commits"},"statuses":{"href":"https://api.github.com/repos/cms-dev/cms/statuses/a310007e19fac15078b7380894f9f761bd4ca933"}},"author_association":"OWNER"}}
{"actor":{"display_login":"stefano-maggiolo"}}