{"action":"created","comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/24713649","id":24713649,"diff_hunk":"@@ -103,3 +103,33 @@ def execfile_(filepath, _globals):\n         else:\n             raise\n     exec_(code, _globals)\n+\n+# ------------------------------------------------------------------------------\n+# Internal module backwards-compatibility\n+\n+import functools\n+import warnings\n+\n+def _deprecated(func):\n+    @functools.wraps(func)\n+    def wrapped(*args, **kwargs):\n+        warnings.warn(\"sphinx.util.pycompat.{0.__name__} is deprecated, \"\n+                      \"please use the standard library version.\".format(func),\n+                      DeprecationWarning, stacklevel=2)","path":"sphinx/util/pycompat.py","position":25,"original_position":25,"commit_id":"b61640959d751d5d124c22f1f08b844e05a88dff","original_commit_id":"b61640959d751d5d124c22f1f08b844e05a88dff","user":{"login":"lehmannro","id":33013,"avatar_url":"https://avatars.githubusercontent.com/u/33013?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmannro","html_url":"https://github.com/lehmannro","followers_url":"https://api.github.com/users/lehmannro/followers","following_url":"https://api.github.com/users/lehmannro/following{/other_user}","gists_url":"https://api.github.com/users/lehmannro/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmannro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmannro/subscriptions","organizations_url":"https://api.github.com/users/lehmannro/orgs","repos_url":"https://api.github.com/users/lehmannro/repos","events_url":"https://api.github.com/users/lehmannro/events{/privacy}","received_events_url":"https://api.github.com/users/lehmannro/received_events","type":"User","site_admin":false},"body":"Which version do you suggest?  1.4?","created_at":"2015-02-14T09:54:59Z","updated_at":"2015-02-14T09:54:59Z","html_url":"https://github.com/sphinx-doc/sphinx/pull/1727#discussion_r24713649","pull_request_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727","_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/24713649"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/1727#discussion_r24713649"},"pull_request":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727"}}},"pull_request":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727","id":29318219,"html_url":"https://github.com/sphinx-doc/sphinx/pull/1727","diff_url":"https://github.com/sphinx-doc/sphinx/pull/1727.diff","patch_url":"https://github.com/sphinx-doc/sphinx/pull/1727.patch","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1727","number":1727,"state":"open","locked":false,"title":"Restore pycompat API","user":{"login":"lehmannro","id":33013,"avatar_url":"https://avatars.githubusercontent.com/u/33013?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmannro","html_url":"https://github.com/lehmannro","followers_url":"https://api.github.com/users/lehmannro/followers","following_url":"https://api.github.com/users/lehmannro/following{/other_user}","gists_url":"https://api.github.com/users/lehmannro/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmannro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmannro/subscriptions","organizations_url":"https://api.github.com/users/lehmannro/orgs","repos_url":"https://api.github.com/users/lehmannro/repos","events_url":"https://api.github.com/users/lehmannro/events{/privacy}","received_events_url":"https://api.github.com/users/lehmannro/received_events","type":"User","site_admin":false},"body":"As discussed in #1726, restore all helper functions in `sphinx.util.pycompat`.  I have also added a deprecation warning to the functions.","created_at":"2015-02-14T09:25:17Z","updated_at":"2015-02-14T09:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14efabcc97fda134e5ca7cda5fff50ca7957ea25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727/commits","review_comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727/comments","review_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1727/comments","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/b61640959d751d5d124c22f1f08b844e05a88dff","head":{"label":"lehmannro:restore-pycompat","ref":"restore-pycompat","sha":"b61640959d751d5d124c22f1f08b844e05a88dff","user":{"login":"lehmannro","id":33013,"avatar_url":"https://avatars.githubusercontent.com/u/33013?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmannro","html_url":"https://github.com/lehmannro","followers_url":"https://api.github.com/users/lehmannro/followers","following_url":"https://api.github.com/users/lehmannro/following{/other_user}","gists_url":"https://api.github.com/users/lehmannro/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmannro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmannro/subscriptions","organizations_url":"https://api.github.com/users/lehmannro/orgs","repos_url":"https://api.github.com/users/lehmannro/repos","events_url":"https://api.github.com/users/lehmannro/events{/privacy}","received_events_url":"https://api.github.com/users/lehmannro/received_events","type":"User","site_admin":false},"repo":{"id":30791978,"name":"sphinx","full_name":"lehmannro/sphinx","owner":{"login":"lehmannro","id":33013,"avatar_url":"https://avatars.githubusercontent.com/u/33013?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmannro","html_url":"https://github.com/lehmannro","followers_url":"https://api.github.com/users/lehmannro/followers","following_url":"https://api.github.com/users/lehmannro/following{/other_user}","gists_url":"https://api.github.com/users/lehmannro/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmannro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmannro/subscriptions","organizations_url":"https://api.github.com/users/lehmannro/orgs","repos_url":"https://api.github.com/users/lehmannro/repos","events_url":"https://api.github.com/users/lehmannro/events{/privacy}","received_events_url":"https://api.github.com/users/lehmannro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lehmannro/sphinx","description":"Main repository for the Sphinx documentation builder","fork":true,"url":"https://api.github.com/repos/lehmannro/sphinx","forks_url":"https://api.github.com/repos/lehmannro/sphinx/forks","keys_url":"https://api.github.com/repos/lehmannro/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lehmannro/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lehmannro/sphinx/teams","hooks_url":"https://api.github.com/repos/lehmannro/sphinx/hooks","issue_events_url":"https://api.github.com/repos/lehmannro/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/lehmannro/sphinx/events","assignees_url":"https://api.github.com/repos/lehmannro/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/lehmannro/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/lehmannro/sphinx/tags","blobs_url":"https://api.github.com/repos/lehmannro/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lehmannro/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lehmannro/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/lehmannro/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lehmannro/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/lehmannro/sphinx/languages","stargazers_url":"https://api.github.com/repos/lehmannro/sphinx/stargazers","contributors_url":"https://api.github.com/repos/lehmannro/sphinx/contributors","subscribers_url":"https://api.github.com/repos/lehmannro/sphinx/subscribers","subscription_url":"https://api.github.com/repos/lehmannro/sphinx/subscription","commits_url":"https://api.github.com/repos/lehmannro/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/lehmannro/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/lehmannro/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/lehmannro/sphinx/issues/comments/{number}","contents_url":"https://api.github.com/repos/lehmannro/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/lehmannro/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lehmannro/sphinx/merges","archive_url":"https://api.github.com/repos/lehmannro/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lehmannro/sphinx/downloads","issues_url":"https://api.github.com/repos/lehmannro/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/lehmannro/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/lehmannro/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/lehmannro/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lehmannro/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/lehmannro/sphinx/releases{/id}","created_at":"2015-02-14T09:02:40Z","updated_at":"2015-02-14T09:15:55Z","pushed_at":"2015-02-14T09:21:55Z","git_url":"git://github.com/lehmannro/sphinx.git","ssh_url":"git@github.com:lehmannro/sphinx.git","clone_url":"https://github.com/lehmannro/sphinx.git","svn_url":"https://github.com/lehmannro/sphinx","homepage":"http://sphinx-doc.org","size":15914,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sphinx-doc:master","ref":"master","sha":"193aadb14091324d52ca441a2e59a43650b6501f","user":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"repo":{"id":28710753,"name":"sphinx","full_name":"sphinx-doc/sphinx","owner":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sphinx-doc/sphinx","description":"Main repository for the Sphinx documentation builder","fork":false,"url":"https://api.github.com/repos/sphinx-doc/sphinx","forks_url":"https://api.github.com/repos/sphinx-doc/sphinx/forks","keys_url":"https://api.github.com/repos/sphinx-doc/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sphinx-doc/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sphinx-doc/sphinx/teams","hooks_url":"https://api.github.com/repos/sphinx-doc/sphinx/hooks","issue_events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/events","assignees_url":"https://api.github.com/repos/sphinx-doc/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/sphinx-doc/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/tags","blobs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/sphinx-doc/sphinx/languages","stargazers_url":"https://api.github.com/repos/sphinx-doc/sphinx/stargazers","contributors_url":"https://api.github.com/repos/sphinx-doc/sphinx/contributors","subscribers_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscribers","subscription_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscription","commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/{number}","contents_url":"https://api.github.com/repos/sphinx-doc/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/sphinx-doc/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sphinx-doc/sphinx/merges","archive_url":"https://api.github.com/repos/sphinx-doc/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sphinx-doc/sphinx/downloads","issues_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/sphinx-doc/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/sphinx-doc/sphinx/releases{/id}","created_at":"2015-01-02T10:53:28Z","updated_at":"2015-02-14T09:16:00Z","pushed_at":"2015-02-14T09:16:00Z","git_url":"git://github.com/sphinx-doc/sphinx.git","ssh_url":"git@github.com:sphinx-doc/sphinx.git","clone_url":"https://github.com/sphinx-doc/sphinx.git","svn_url":"https://github.com/sphinx-doc/sphinx","homepage":"http://sphinx-doc.org","size":15914,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":395,"forks":30,"open_issues":395,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/1727"},"issue":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1727"},"comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1727/comments"},"review_comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727/comments"},"review_comment":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1727/commits"},"statuses":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/b61640959d751d5d124c22f1f08b844e05a88dff"}}}}