{"action":"created","comment":{"url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/comments/36164935","id":36164935,"diff_hunk":"@@ -16,31 +18,36 @@ def parse_val(v):\n             else:\n                 return v\n \n-        for k, v in attribs.iteritems():\n+        try:\n+            iteritems = dict.items # Python 3\n+        except AttributeError:\n+            iteritems = dict.iteritems # Python 2\n+\n+        for k, v in iteritems(attribs):\n             if isinstance(v, list):\n                 attribs[k] = [parse_val(el) for el in v]\n             elif isinstance(v, dict):\n                 attribs[k] = parse_val(v)\n         self.__dict__.update(attribs)\n \n-    @property\n-    def keys(self):\n-        return self.__dict__.keys()\n-\n-    def __unicode__(self):\n-        if hasattr(self, '_unicode_value'):\n-            if self._unicode_value is None:\n-                return '(none)'\n+    if sys.version_info[0] < 3:\n+        @property","path":"toggl/reports.py","position":35,"original_position":35,"commit_id":"c938c0d276d8aa58a4724003cb14d4622d13f768","original_commit_id":"c938c0d276d8aa58a4724003cb14d4622d13f768","user":{"login":"senko","id":3362,"avatar_url":"https://avatars.githubusercontent.com/u/3362?v=3","gravatar_id":"","url":"https://api.github.com/users/senko","html_url":"https://github.com/senko","followers_url":"https://api.github.com/users/senko/followers","following_url":"https://api.github.com/users/senko/following{/other_user}","gists_url":"https://api.github.com/users/senko/gists{/gist_id}","starred_url":"https://api.github.com/users/senko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senko/subscriptions","organizations_url":"https://api.github.com/users/senko/orgs","repos_url":"https://api.github.com/users/senko/repos","events_url":"https://api.github.com/users/senko/events{/privacy}","received_events_url":"https://api.github.com/users/senko/received_events","type":"User","site_admin":false},"body":"This seems to be missing (not defined) if Python3 is used.","created_at":"2015-08-04T07:55:13Z","updated_at":"2015-08-04T07:55:13Z","html_url":"https://github.com/dobarkod/pytoggl/pull/1#discussion_r36164935","pull_request_url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/comments/36164935"},"html":{"href":"https://github.com/dobarkod/pytoggl/pull/1#discussion_r36164935"},"pull_request":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1","id":41394374,"html_url":"https://github.com/dobarkod/pytoggl/pull/1","diff_url":"https://github.com/dobarkod/pytoggl/pull/1.diff","patch_url":"https://github.com/dobarkod/pytoggl/pull/1.patch","issue_url":"https://api.github.com/repos/dobarkod/pytoggl/issues/1","number":1,"state":"open","locked":false,"title":"Updated to work with python3","user":{"login":"jamespcole","id":3460982,"avatar_url":"https://avatars.githubusercontent.com/u/3460982?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespcole","html_url":"https://github.com/jamespcole","followers_url":"https://api.github.com/users/jamespcole/followers","following_url":"https://api.github.com/users/jamespcole/following{/other_user}","gists_url":"https://api.github.com/users/jamespcole/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespcole/subscriptions","organizations_url":"https://api.github.com/users/jamespcole/orgs","repos_url":"https://api.github.com/users/jamespcole/repos","events_url":"https://api.github.com/users/jamespcole/events{/privacy}","received_events_url":"https://api.github.com/users/jamespcole/received_events","type":"User","site_admin":false},"body":"Backwards compatibility with python2 is maintained","created_at":"2015-08-01T01:58:32Z","updated_at":"2015-08-04T07:55:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"224d9127dca622b3316577cc72bda064ef9c78f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dobarkod/pytoggl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dobarkod/pytoggl/issues/1/comments","statuses_url":"https://api.github.com/repos/dobarkod/pytoggl/statuses/c938c0d276d8aa58a4724003cb14d4622d13f768","head":{"label":"jamespcole:master","ref":"master","sha":"c938c0d276d8aa58a4724003cb14d4622d13f768","user":{"login":"jamespcole","id":3460982,"avatar_url":"https://avatars.githubusercontent.com/u/3460982?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespcole","html_url":"https://github.com/jamespcole","followers_url":"https://api.github.com/users/jamespcole/followers","following_url":"https://api.github.com/users/jamespcole/following{/other_user}","gists_url":"https://api.github.com/users/jamespcole/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespcole/subscriptions","organizations_url":"https://api.github.com/users/jamespcole/orgs","repos_url":"https://api.github.com/users/jamespcole/repos","events_url":"https://api.github.com/users/jamespcole/events{/privacy}","received_events_url":"https://api.github.com/users/jamespcole/received_events","type":"User","site_admin":false},"repo":{"id":40029301,"name":"pytoggl","full_name":"jamespcole/pytoggl","owner":{"login":"jamespcole","id":3460982,"avatar_url":"https://avatars.githubusercontent.com/u/3460982?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespcole","html_url":"https://github.com/jamespcole","followers_url":"https://api.github.com/users/jamespcole/followers","following_url":"https://api.github.com/users/jamespcole/following{/other_user}","gists_url":"https://api.github.com/users/jamespcole/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespcole/subscriptions","organizations_url":"https://api.github.com/users/jamespcole/orgs","repos_url":"https://api.github.com/users/jamespcole/repos","events_url":"https://api.github.com/users/jamespcole/events{/privacy}","received_events_url":"https://api.github.com/users/jamespcole/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamespcole/pytoggl","description":"Python wrapper for Toggl API","fork":true,"url":"https://api.github.com/repos/jamespcole/pytoggl","forks_url":"https://api.github.com/repos/jamespcole/pytoggl/forks","keys_url":"https://api.github.com/repos/jamespcole/pytoggl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamespcole/pytoggl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamespcole/pytoggl/teams","hooks_url":"https://api.github.com/repos/jamespcole/pytoggl/hooks","issue_events_url":"https://api.github.com/repos/jamespcole/pytoggl/issues/events{/number}","events_url":"https://api.github.com/repos/jamespcole/pytoggl/events","assignees_url":"https://api.github.com/repos/jamespcole/pytoggl/assignees{/user}","branches_url":"https://api.github.com/repos/jamespcole/pytoggl/branches{/branch}","tags_url":"https://api.github.com/repos/jamespcole/pytoggl/tags","blobs_url":"https://api.github.com/repos/jamespcole/pytoggl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamespcole/pytoggl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamespcole/pytoggl/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamespcole/pytoggl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamespcole/pytoggl/statuses/{sha}","languages_url":"https://api.github.com/repos/jamespcole/pytoggl/languages","stargazers_url":"https://api.github.com/repos/jamespcole/pytoggl/stargazers","contributors_url":"https://api.github.com/repos/jamespcole/pytoggl/contributors","subscribers_url":"https://api.github.com/repos/jamespcole/pytoggl/subscribers","subscription_url":"https://api.github.com/repos/jamespcole/pytoggl/subscription","commits_url":"https://api.github.com/repos/jamespcole/pytoggl/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamespcole/pytoggl/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamespcole/pytoggl/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamespcole/pytoggl/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamespcole/pytoggl/contents/{+path}","compare_url":"https://api.github.com/repos/jamespcole/pytoggl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamespcole/pytoggl/merges","archive_url":"https://api.github.com/repos/jamespcole/pytoggl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamespcole/pytoggl/downloads","issues_url":"https://api.github.com/repos/jamespcole/pytoggl/issues{/number}","pulls_url":"https://api.github.com/repos/jamespcole/pytoggl/pulls{/number}","milestones_url":"https://api.github.com/repos/jamespcole/pytoggl/milestones{/number}","notifications_url":"https://api.github.com/repos/jamespcole/pytoggl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamespcole/pytoggl/labels{/name}","releases_url":"https://api.github.com/repos/jamespcole/pytoggl/releases{/id}","created_at":"2015-07-31T23:53:00Z","updated_at":"2015-07-31T23:53:00Z","pushed_at":"2015-08-01T05:00:02Z","git_url":"git://github.com/jamespcole/pytoggl.git","ssh_url":"git@github.com:jamespcole/pytoggl.git","clone_url":"https://github.com/jamespcole/pytoggl.git","svn_url":"https://github.com/jamespcole/pytoggl","homepage":null,"size":94,"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":"dobarkod:master","ref":"master","sha":"22e84b5c667cfad1f2bf42bb1f06bfff4d0f9d8c","user":{"login":"dobarkod","id":2169146,"avatar_url":"https://avatars.githubusercontent.com/u/2169146?v=3","gravatar_id":"","url":"https://api.github.com/users/dobarkod","html_url":"https://github.com/dobarkod","followers_url":"https://api.github.com/users/dobarkod/followers","following_url":"https://api.github.com/users/dobarkod/following{/other_user}","gists_url":"https://api.github.com/users/dobarkod/gists{/gist_id}","starred_url":"https://api.github.com/users/dobarkod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobarkod/subscriptions","organizations_url":"https://api.github.com/users/dobarkod/orgs","repos_url":"https://api.github.com/users/dobarkod/repos","events_url":"https://api.github.com/users/dobarkod/events{/privacy}","received_events_url":"https://api.github.com/users/dobarkod/received_events","type":"Organization","site_admin":false},"repo":{"id":14632493,"name":"pytoggl","full_name":"dobarkod/pytoggl","owner":{"login":"dobarkod","id":2169146,"avatar_url":"https://avatars.githubusercontent.com/u/2169146?v=3","gravatar_id":"","url":"https://api.github.com/users/dobarkod","html_url":"https://github.com/dobarkod","followers_url":"https://api.github.com/users/dobarkod/followers","following_url":"https://api.github.com/users/dobarkod/following{/other_user}","gists_url":"https://api.github.com/users/dobarkod/gists{/gist_id}","starred_url":"https://api.github.com/users/dobarkod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dobarkod/subscriptions","organizations_url":"https://api.github.com/users/dobarkod/orgs","repos_url":"https://api.github.com/users/dobarkod/repos","events_url":"https://api.github.com/users/dobarkod/events{/privacy}","received_events_url":"https://api.github.com/users/dobarkod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dobarkod/pytoggl","description":"Python wrapper for Toggl API","fork":false,"url":"https://api.github.com/repos/dobarkod/pytoggl","forks_url":"https://api.github.com/repos/dobarkod/pytoggl/forks","keys_url":"https://api.github.com/repos/dobarkod/pytoggl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dobarkod/pytoggl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dobarkod/pytoggl/teams","hooks_url":"https://api.github.com/repos/dobarkod/pytoggl/hooks","issue_events_url":"https://api.github.com/repos/dobarkod/pytoggl/issues/events{/number}","events_url":"https://api.github.com/repos/dobarkod/pytoggl/events","assignees_url":"https://api.github.com/repos/dobarkod/pytoggl/assignees{/user}","branches_url":"https://api.github.com/repos/dobarkod/pytoggl/branches{/branch}","tags_url":"https://api.github.com/repos/dobarkod/pytoggl/tags","blobs_url":"https://api.github.com/repos/dobarkod/pytoggl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dobarkod/pytoggl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dobarkod/pytoggl/git/refs{/sha}","trees_url":"https://api.github.com/repos/dobarkod/pytoggl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dobarkod/pytoggl/statuses/{sha}","languages_url":"https://api.github.com/repos/dobarkod/pytoggl/languages","stargazers_url":"https://api.github.com/repos/dobarkod/pytoggl/stargazers","contributors_url":"https://api.github.com/repos/dobarkod/pytoggl/contributors","subscribers_url":"https://api.github.com/repos/dobarkod/pytoggl/subscribers","subscription_url":"https://api.github.com/repos/dobarkod/pytoggl/subscription","commits_url":"https://api.github.com/repos/dobarkod/pytoggl/commits{/sha}","git_commits_url":"https://api.github.com/repos/dobarkod/pytoggl/git/commits{/sha}","comments_url":"https://api.github.com/repos/dobarkod/pytoggl/comments{/number}","issue_comment_url":"https://api.github.com/repos/dobarkod/pytoggl/issues/comments{/number}","contents_url":"https://api.github.com/repos/dobarkod/pytoggl/contents/{+path}","compare_url":"https://api.github.com/repos/dobarkod/pytoggl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dobarkod/pytoggl/merges","archive_url":"https://api.github.com/repos/dobarkod/pytoggl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dobarkod/pytoggl/downloads","issues_url":"https://api.github.com/repos/dobarkod/pytoggl/issues{/number}","pulls_url":"https://api.github.com/repos/dobarkod/pytoggl/pulls{/number}","milestones_url":"https://api.github.com/repos/dobarkod/pytoggl/milestones{/number}","notifications_url":"https://api.github.com/repos/dobarkod/pytoggl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dobarkod/pytoggl/labels{/name}","releases_url":"https://api.github.com/repos/dobarkod/pytoggl/releases{/id}","created_at":"2013-11-22T23:44:02Z","updated_at":"2015-02-04T18:55:06Z","pushed_at":"2015-08-01T05:00:03Z","git_url":"git://github.com/dobarkod/pytoggl.git","ssh_url":"git@github.com:dobarkod/pytoggl.git","clone_url":"https://github.com/dobarkod/pytoggl.git","svn_url":"https://github.com/dobarkod/pytoggl","homepage":null,"size":153,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1"},"html":{"href":"https://github.com/dobarkod/pytoggl/pull/1"},"issue":{"href":"https://api.github.com/repos/dobarkod/pytoggl/issues/1"},"comments":{"href":"https://api.github.com/repos/dobarkod/pytoggl/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dobarkod/pytoggl/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dobarkod/pytoggl/statuses/c938c0d276d8aa58a4724003cb14d4622d13f768"}}}}