{"action":"created","comment":{"url":"https://api.github.com/repos/Tribler/tribler/pulls/comments/32815111","id":32815111,"diff_hunk":"@@ -36,7 +36,19 @@\n from collections import MutableMapping\n from itertools import chain\n \n-from leveldb import LevelDB, WriteBatch\n+try:\n+    from leveldb import LevelDB, WriteBatch\n+\n+    def get_write_batch(_):\n+        return WriteBatch()\n+\n+except ImportError:\n+    import plyvel","path":"Tribler/Core/torrentstore.py","position":12,"original_position":12,"commit_id":"526c6880554421edc3fe17bf34b92d086c490cee","original_commit_id":"526c6880554421edc3fe17bf34b92d086c490cee","user":{"login":"whirm","id":529494,"avatar_url":"https://avatars.githubusercontent.com/u/529494?v=3","gravatar_id":"","url":"https://api.github.com/users/whirm","html_url":"https://github.com/whirm","followers_url":"https://api.github.com/users/whirm/followers","following_url":"https://api.github.com/users/whirm/following{/other_user}","gists_url":"https://api.github.com/users/whirm/gists{/gist_id}","starred_url":"https://api.github.com/users/whirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whirm/subscriptions","organizations_url":"https://api.github.com/users/whirm/orgs","repos_url":"https://api.github.com/users/whirm/repos","events_url":"https://api.github.com/users/whirm/events{/privacy}","received_events_url":"https://api.github.com/users/whirm/received_events","type":"User","site_admin":false},"body":"no need to import it here","created_at":"2015-06-19T09:44:01Z","updated_at":"2015-06-19T09:44:01Z","html_url":"https://github.com/Tribler/tribler/pull/1488#discussion_r32815111","pull_request_url":"https://api.github.com/repos/Tribler/tribler/pulls/1488","_links":{"self":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/comments/32815111"},"html":{"href":"https://github.com/Tribler/tribler/pull/1488#discussion_r32815111"},"pull_request":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/1488"}}},"pull_request":{"url":"https://api.github.com/repos/Tribler/tribler/pulls/1488","id":38089798,"html_url":"https://github.com/Tribler/tribler/pull/1488","diff_url":"https://github.com/Tribler/tribler/pull/1488.diff","patch_url":"https://github.com/Tribler/tribler/pull/1488.patch","issue_url":"https://api.github.com/repos/Tribler/tribler/issues/1488","number":1488,"state":"open","locked":false,"title":"add support for plyvel","user":{"login":"mathewvermeer","id":6323084,"avatar_url":"https://avatars.githubusercontent.com/u/6323084?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewvermeer","html_url":"https://github.com/mathewvermeer","followers_url":"https://api.github.com/users/mathewvermeer/followers","following_url":"https://api.github.com/users/mathewvermeer/following{/other_user}","gists_url":"https://api.github.com/users/mathewvermeer/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewvermeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewvermeer/subscriptions","organizations_url":"https://api.github.com/users/mathewvermeer/orgs","repos_url":"https://api.github.com/users/mathewvermeer/repos","events_url":"https://api.github.com/users/mathewvermeer/events{/privacy}","received_events_url":"https://api.github.com/users/mathewvermeer/received_events","type":"User","site_admin":false},"body":"An alternative for @Darsestheus's pull request #1484. Adds Plyvel support to TorrentStore.","created_at":"2015-06-19T09:16:13Z","updated_at":"2015-06-19T09:44:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8a68015218714eb3762986b52ea2b8d60429e9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tribler/tribler/pulls/1488/commits","review_comments_url":"https://api.github.com/repos/Tribler/tribler/pulls/1488/comments","review_comment_url":"https://api.github.com/repos/Tribler/tribler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tribler/tribler/issues/1488/comments","statuses_url":"https://api.github.com/repos/Tribler/tribler/statuses/526c6880554421edc3fe17bf34b92d086c490cee","head":{"label":"mathewvermeer:plyvel","ref":"plyvel","sha":"526c6880554421edc3fe17bf34b92d086c490cee","user":{"login":"mathewvermeer","id":6323084,"avatar_url":"https://avatars.githubusercontent.com/u/6323084?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewvermeer","html_url":"https://github.com/mathewvermeer","followers_url":"https://api.github.com/users/mathewvermeer/followers","following_url":"https://api.github.com/users/mathewvermeer/following{/other_user}","gists_url":"https://api.github.com/users/mathewvermeer/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewvermeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewvermeer/subscriptions","organizations_url":"https://api.github.com/users/mathewvermeer/orgs","repos_url":"https://api.github.com/users/mathewvermeer/repos","events_url":"https://api.github.com/users/mathewvermeer/events{/privacy}","received_events_url":"https://api.github.com/users/mathewvermeer/received_events","type":"User","site_admin":false},"repo":{"id":35806434,"name":"tribler","full_name":"mathewvermeer/tribler","owner":{"login":"mathewvermeer","id":6323084,"avatar_url":"https://avatars.githubusercontent.com/u/6323084?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewvermeer","html_url":"https://github.com/mathewvermeer","followers_url":"https://api.github.com/users/mathewvermeer/followers","following_url":"https://api.github.com/users/mathewvermeer/following{/other_user}","gists_url":"https://api.github.com/users/mathewvermeer/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewvermeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewvermeer/subscriptions","organizations_url":"https://api.github.com/users/mathewvermeer/orgs","repos_url":"https://api.github.com/users/mathewvermeer/repos","events_url":"https://api.github.com/users/mathewvermeer/events{/privacy}","received_events_url":"https://api.github.com/users/mathewvermeer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mathewvermeer/tribler","description":"Privacy with BitTorrent and resilient to shut down","fork":true,"url":"https://api.github.com/repos/mathewvermeer/tribler","forks_url":"https://api.github.com/repos/mathewvermeer/tribler/forks","keys_url":"https://api.github.com/repos/mathewvermeer/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathewvermeer/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathewvermeer/tribler/teams","hooks_url":"https://api.github.com/repos/mathewvermeer/tribler/hooks","issue_events_url":"https://api.github.com/repos/mathewvermeer/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/mathewvermeer/tribler/events","assignees_url":"https://api.github.com/repos/mathewvermeer/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/mathewvermeer/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/mathewvermeer/tribler/tags","blobs_url":"https://api.github.com/repos/mathewvermeer/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathewvermeer/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathewvermeer/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathewvermeer/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathewvermeer/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/mathewvermeer/tribler/languages","stargazers_url":"https://api.github.com/repos/mathewvermeer/tribler/stargazers","contributors_url":"https://api.github.com/repos/mathewvermeer/tribler/contributors","subscribers_url":"https://api.github.com/repos/mathewvermeer/tribler/subscribers","subscription_url":"https://api.github.com/repos/mathewvermeer/tribler/subscription","commits_url":"https://api.github.com/repos/mathewvermeer/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathewvermeer/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathewvermeer/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathewvermeer/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathewvermeer/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/mathewvermeer/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathewvermeer/tribler/merges","archive_url":"https://api.github.com/repos/mathewvermeer/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathewvermeer/tribler/downloads","issues_url":"https://api.github.com/repos/mathewvermeer/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/mathewvermeer/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/mathewvermeer/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/mathewvermeer/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathewvermeer/tribler/labels{/name}","releases_url":"https://api.github.com/repos/mathewvermeer/tribler/releases{/id}","created_at":"2015-05-18T08:36:35Z","updated_at":"2015-05-18T08:36:37Z","pushed_at":"2015-06-19T09:14:18Z","git_url":"git://github.com/mathewvermeer/tribler.git","ssh_url":"git@github.com:mathewvermeer/tribler.git","clone_url":"https://github.com/mathewvermeer/tribler.git","svn_url":"https://github.com/mathewvermeer/tribler","homepage":"http://www.tribler.org","size":169615,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"devel"}},"base":{"label":"Tribler:devel","ref":"devel","sha":"655dd91a1c9d1b00572fe4799a288f09464163aa","user":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"repo":{"id":8411137,"name":"tribler","full_name":"Tribler/tribler","owner":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tribler/tribler","description":"Privacy with BitTorrent and resilient to shut down","fork":false,"url":"https://api.github.com/repos/Tribler/tribler","forks_url":"https://api.github.com/repos/Tribler/tribler/forks","keys_url":"https://api.github.com/repos/Tribler/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tribler/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tribler/tribler/teams","hooks_url":"https://api.github.com/repos/Tribler/tribler/hooks","issue_events_url":"https://api.github.com/repos/Tribler/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/Tribler/tribler/events","assignees_url":"https://api.github.com/repos/Tribler/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/Tribler/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/Tribler/tribler/tags","blobs_url":"https://api.github.com/repos/Tribler/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tribler/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tribler/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tribler/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tribler/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/Tribler/tribler/languages","stargazers_url":"https://api.github.com/repos/Tribler/tribler/stargazers","contributors_url":"https://api.github.com/repos/Tribler/tribler/contributors","subscribers_url":"https://api.github.com/repos/Tribler/tribler/subscribers","subscription_url":"https://api.github.com/repos/Tribler/tribler/subscription","commits_url":"https://api.github.com/repos/Tribler/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tribler/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tribler/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tribler/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tribler/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/Tribler/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tribler/tribler/merges","archive_url":"https://api.github.com/repos/Tribler/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tribler/tribler/downloads","issues_url":"https://api.github.com/repos/Tribler/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/Tribler/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/Tribler/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/Tribler/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tribler/tribler/labels{/name}","releases_url":"https://api.github.com/repos/Tribler/tribler/releases{/id}","created_at":"2013-02-25T14:51:58Z","updated_at":"2015-06-18T15:49:22Z","pushed_at":"2015-06-19T09:34:33Z","git_url":"git://github.com/Tribler/tribler.git","ssh_url":"git@github.com:Tribler/tribler.git","clone_url":"https://github.com/Tribler/tribler.git","svn_url":"https://github.com/Tribler/tribler","homepage":"http://www.tribler.org","size":120971,"stargazers_count":1641,"watchers_count":1641,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":136,"forks":148,"open_issues":136,"watchers":1641,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/1488"},"html":{"href":"https://github.com/Tribler/tribler/pull/1488"},"issue":{"href":"https://api.github.com/repos/Tribler/tribler/issues/1488"},"comments":{"href":"https://api.github.com/repos/Tribler/tribler/issues/1488/comments"},"review_comments":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/1488/comments"},"review_comment":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tribler/tribler/pulls/1488/commits"},"statuses":{"href":"https://api.github.com/repos/Tribler/tribler/statuses/526c6880554421edc3fe17bf34b92d086c490cee"}}}}