{"action":"created","comment":{"url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/comments/34943008","id":34943008,"diff_hunk":"@@ -0,0 +1,45 @@\n+import sys\n+\n+PY3 = sys.version_info[0] >= 3\n+\n+if PY3:  # pragma: no cover\n+    basestring = str\n+    unicode_type = str\n+    bytes_type = bytes\n+\n+    def iteritems(d):\n+        return iter(d.items())\n+\n+    def itervalues(d):\n+        return iter(d.values())\n+\n+    pyrange = range\n+    pyzip = zip","path":"tonic/pycompat.py","position":17,"original_position":17,"commit_id":"55041c103d612db5ee87bb926a73f781d6fa7c14","original_commit_id":"55041c103d612db5ee87bb926a73f781d6fa7c14","user":{"login":"jhamman","id":2443309,"avatar_url":"https://avatars.githubusercontent.com/u/2443309?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamman","html_url":"https://github.com/jhamman","followers_url":"https://api.github.com/users/jhamman/followers","following_url":"https://api.github.com/users/jhamman/following{/other_user}","gists_url":"https://api.github.com/users/jhamman/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamman/subscriptions","organizations_url":"https://api.github.com/users/jhamman/orgs","repos_url":"https://api.github.com/users/jhamman/repos","events_url":"https://api.github.com/users/jhamman/events{/privacy}","received_events_url":"https://api.github.com/users/jhamman/received_events","type":"User","site_admin":false},"body":"pyzip is defined below in line 34: https://github.com/UW-Hydro/tonic/pull/20/files#diff-1307aa1f6fc289df0ef54e246b689727R34","created_at":"2015-07-18T02:05:18Z","updated_at":"2015-07-18T02:05:18Z","html_url":"https://github.com/UW-Hydro/tonic/pull/20#discussion_r34943008","pull_request_url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/comments/34943008"},"html":{"href":"https://github.com/UW-Hydro/tonic/pull/20#discussion_r34943008"},"pull_request":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20","id":40281559,"html_url":"https://github.com/UW-Hydro/tonic/pull/20","diff_url":"https://github.com/UW-Hydro/tonic/pull/20.diff","patch_url":"https://github.com/UW-Hydro/tonic/pull/20.patch","issue_url":"https://api.github.com/repos/UW-Hydro/tonic/issues/20","number":20,"state":"open","locked":false,"title":"add pycompat module and included some minor python3 fixes","user":{"login":"jhamman","id":2443309,"avatar_url":"https://avatars.githubusercontent.com/u/2443309?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamman","html_url":"https://github.com/jhamman","followers_url":"https://api.github.com/users/jhamman/followers","following_url":"https://api.github.com/users/jhamman/following{/other_user}","gists_url":"https://api.github.com/users/jhamman/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamman/subscriptions","organizations_url":"https://api.github.com/users/jhamman/orgs","repos_url":"https://api.github.com/users/jhamman/repos","events_url":"https://api.github.com/users/jhamman/events{/privacy}","received_events_url":"https://api.github.com/users/jhamman/received_events","type":"User","site_admin":false},"body":"This is all about python 3 - nothing major here. A following commit will add a few tests.\r\n\r\n","created_at":"2015-07-17T23:53:57Z","updated_at":"2015-07-18T02:05:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa8c1950c48abbdb272aa5d07e1be646f6dbae83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20/commits","review_comments_url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20/comments","review_comment_url":"https://api.github.com/repos/UW-Hydro/tonic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UW-Hydro/tonic/issues/20/comments","statuses_url":"https://api.github.com/repos/UW-Hydro/tonic/statuses/55041c103d612db5ee87bb926a73f781d6fa7c14","head":{"label":"jhamman:feature/pycompat","ref":"feature/pycompat","sha":"55041c103d612db5ee87bb926a73f781d6fa7c14","user":{"login":"jhamman","id":2443309,"avatar_url":"https://avatars.githubusercontent.com/u/2443309?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamman","html_url":"https://github.com/jhamman","followers_url":"https://api.github.com/users/jhamman/followers","following_url":"https://api.github.com/users/jhamman/following{/other_user}","gists_url":"https://api.github.com/users/jhamman/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamman/subscriptions","organizations_url":"https://api.github.com/users/jhamman/orgs","repos_url":"https://api.github.com/users/jhamman/repos","events_url":"https://api.github.com/users/jhamman/events{/privacy}","received_events_url":"https://api.github.com/users/jhamman/received_events","type":"User","site_admin":false},"repo":{"id":39167019,"name":"tonic","full_name":"jhamman/tonic","owner":{"login":"jhamman","id":2443309,"avatar_url":"https://avatars.githubusercontent.com/u/2443309?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamman","html_url":"https://github.com/jhamman","followers_url":"https://api.github.com/users/jhamman/followers","following_url":"https://api.github.com/users/jhamman/following{/other_user}","gists_url":"https://api.github.com/users/jhamman/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamman/subscriptions","organizations_url":"https://api.github.com/users/jhamman/orgs","repos_url":"https://api.github.com/users/jhamman/repos","events_url":"https://api.github.com/users/jhamman/events{/privacy}","received_events_url":"https://api.github.com/users/jhamman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhamman/tonic","description":"A pre/post processing toolbox for hydrologic models","fork":true,"url":"https://api.github.com/repos/jhamman/tonic","forks_url":"https://api.github.com/repos/jhamman/tonic/forks","keys_url":"https://api.github.com/repos/jhamman/tonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhamman/tonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhamman/tonic/teams","hooks_url":"https://api.github.com/repos/jhamman/tonic/hooks","issue_events_url":"https://api.github.com/repos/jhamman/tonic/issues/events{/number}","events_url":"https://api.github.com/repos/jhamman/tonic/events","assignees_url":"https://api.github.com/repos/jhamman/tonic/assignees{/user}","branches_url":"https://api.github.com/repos/jhamman/tonic/branches{/branch}","tags_url":"https://api.github.com/repos/jhamman/tonic/tags","blobs_url":"https://api.github.com/repos/jhamman/tonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhamman/tonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhamman/tonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhamman/tonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhamman/tonic/statuses/{sha}","languages_url":"https://api.github.com/repos/jhamman/tonic/languages","stargazers_url":"https://api.github.com/repos/jhamman/tonic/stargazers","contributors_url":"https://api.github.com/repos/jhamman/tonic/contributors","subscribers_url":"https://api.github.com/repos/jhamman/tonic/subscribers","subscription_url":"https://api.github.com/repos/jhamman/tonic/subscription","commits_url":"https://api.github.com/repos/jhamman/tonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhamman/tonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhamman/tonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhamman/tonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhamman/tonic/contents/{+path}","compare_url":"https://api.github.com/repos/jhamman/tonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhamman/tonic/merges","archive_url":"https://api.github.com/repos/jhamman/tonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhamman/tonic/downloads","issues_url":"https://api.github.com/repos/jhamman/tonic/issues{/number}","pulls_url":"https://api.github.com/repos/jhamman/tonic/pulls{/number}","milestones_url":"https://api.github.com/repos/jhamman/tonic/milestones{/number}","notifications_url":"https://api.github.com/repos/jhamman/tonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhamman/tonic/labels{/name}","releases_url":"https://api.github.com/repos/jhamman/tonic/releases{/id}","created_at":"2015-07-16T00:00:58Z","updated_at":"2015-07-16T00:00:59Z","pushed_at":"2015-07-18T00:29:28Z","git_url":"git://github.com/jhamman/tonic.git","ssh_url":"git@github.com:jhamman/tonic.git","clone_url":"https://github.com/jhamman/tonic.git","svn_url":"https://github.com/jhamman/tonic","homepage":"","size":600,"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":"UW-Hydro:develop","ref":"develop","sha":"2bf51675274c76190dab50007fcbec5e503a1afa","user":{"login":"UW-Hydro","id":3475662,"avatar_url":"https://avatars.githubusercontent.com/u/3475662?v=3","gravatar_id":"","url":"https://api.github.com/users/UW-Hydro","html_url":"https://github.com/UW-Hydro","followers_url":"https://api.github.com/users/UW-Hydro/followers","following_url":"https://api.github.com/users/UW-Hydro/following{/other_user}","gists_url":"https://api.github.com/users/UW-Hydro/gists{/gist_id}","starred_url":"https://api.github.com/users/UW-Hydro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UW-Hydro/subscriptions","organizations_url":"https://api.github.com/users/UW-Hydro/orgs","repos_url":"https://api.github.com/users/UW-Hydro/repos","events_url":"https://api.github.com/users/UW-Hydro/events{/privacy}","received_events_url":"https://api.github.com/users/UW-Hydro/received_events","type":"Organization","site_admin":false},"repo":{"id":8017830,"name":"tonic","full_name":"UW-Hydro/tonic","owner":{"login":"UW-Hydro","id":3475662,"avatar_url":"https://avatars.githubusercontent.com/u/3475662?v=3","gravatar_id":"","url":"https://api.github.com/users/UW-Hydro","html_url":"https://github.com/UW-Hydro","followers_url":"https://api.github.com/users/UW-Hydro/followers","following_url":"https://api.github.com/users/UW-Hydro/following{/other_user}","gists_url":"https://api.github.com/users/UW-Hydro/gists{/gist_id}","starred_url":"https://api.github.com/users/UW-Hydro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UW-Hydro/subscriptions","organizations_url":"https://api.github.com/users/UW-Hydro/orgs","repos_url":"https://api.github.com/users/UW-Hydro/repos","events_url":"https://api.github.com/users/UW-Hydro/events{/privacy}","received_events_url":"https://api.github.com/users/UW-Hydro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UW-Hydro/tonic","description":"A pre/post processing toolbox for hydrologic models","fork":false,"url":"https://api.github.com/repos/UW-Hydro/tonic","forks_url":"https://api.github.com/repos/UW-Hydro/tonic/forks","keys_url":"https://api.github.com/repos/UW-Hydro/tonic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UW-Hydro/tonic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UW-Hydro/tonic/teams","hooks_url":"https://api.github.com/repos/UW-Hydro/tonic/hooks","issue_events_url":"https://api.github.com/repos/UW-Hydro/tonic/issues/events{/number}","events_url":"https://api.github.com/repos/UW-Hydro/tonic/events","assignees_url":"https://api.github.com/repos/UW-Hydro/tonic/assignees{/user}","branches_url":"https://api.github.com/repos/UW-Hydro/tonic/branches{/branch}","tags_url":"https://api.github.com/repos/UW-Hydro/tonic/tags","blobs_url":"https://api.github.com/repos/UW-Hydro/tonic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UW-Hydro/tonic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UW-Hydro/tonic/git/refs{/sha}","trees_url":"https://api.github.com/repos/UW-Hydro/tonic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UW-Hydro/tonic/statuses/{sha}","languages_url":"https://api.github.com/repos/UW-Hydro/tonic/languages","stargazers_url":"https://api.github.com/repos/UW-Hydro/tonic/stargazers","contributors_url":"https://api.github.com/repos/UW-Hydro/tonic/contributors","subscribers_url":"https://api.github.com/repos/UW-Hydro/tonic/subscribers","subscription_url":"https://api.github.com/repos/UW-Hydro/tonic/subscription","commits_url":"https://api.github.com/repos/UW-Hydro/tonic/commits{/sha}","git_commits_url":"https://api.github.com/repos/UW-Hydro/tonic/git/commits{/sha}","comments_url":"https://api.github.com/repos/UW-Hydro/tonic/comments{/number}","issue_comment_url":"https://api.github.com/repos/UW-Hydro/tonic/issues/comments{/number}","contents_url":"https://api.github.com/repos/UW-Hydro/tonic/contents/{+path}","compare_url":"https://api.github.com/repos/UW-Hydro/tonic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UW-Hydro/tonic/merges","archive_url":"https://api.github.com/repos/UW-Hydro/tonic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UW-Hydro/tonic/downloads","issues_url":"https://api.github.com/repos/UW-Hydro/tonic/issues{/number}","pulls_url":"https://api.github.com/repos/UW-Hydro/tonic/pulls{/number}","milestones_url":"https://api.github.com/repos/UW-Hydro/tonic/milestones{/number}","notifications_url":"https://api.github.com/repos/UW-Hydro/tonic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UW-Hydro/tonic/labels{/name}","releases_url":"https://api.github.com/repos/UW-Hydro/tonic/releases{/id}","created_at":"2013-02-04T22:32:43Z","updated_at":"2015-07-16T15:39:10Z","pushed_at":"2015-07-18T00:29:28Z","git_url":"git://github.com/UW-Hydro/tonic.git","ssh_url":"git@github.com:UW-Hydro/tonic.git","clone_url":"https://github.com/UW-Hydro/tonic.git","svn_url":"https://github.com/UW-Hydro/tonic","homepage":"","size":600,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20"},"html":{"href":"https://github.com/UW-Hydro/tonic/pull/20"},"issue":{"href":"https://api.github.com/repos/UW-Hydro/tonic/issues/20"},"comments":{"href":"https://api.github.com/repos/UW-Hydro/tonic/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UW-Hydro/tonic/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/UW-Hydro/tonic/statuses/55041c103d612db5ee87bb926a73f781d6fa7c14"}}}}