{"action":"created","comment":{"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments/34761275","id":34761275,"diff_hunk":"@@ -0,0 +1,47 @@\n+import tempfile\n+import uuid\n+import os\n+\n+\n+def gentempfilename(dir=None, suffix=None):","path":"pyqtgraph/exporters/tests/utils.py","position":6,"original_position":6,"commit_id":"0e4fd90ca2f2ae6076a04f507524fc98daf52d78","original_commit_id":"0e4fd90ca2f2ae6076a04f507524fc98daf52d78","user":{"login":"campagnola","id":940580,"avatar_url":"https://avatars.githubusercontent.com/u/940580?v=3","gravatar_id":"","url":"https://api.github.com/users/campagnola","html_url":"https://github.com/campagnola","followers_url":"https://api.github.com/users/campagnola/followers","following_url":"https://api.github.com/users/campagnola/following{/other_user}","gists_url":"https://api.github.com/users/campagnola/gists{/gist_id}","starred_url":"https://api.github.com/users/campagnola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campagnola/subscriptions","organizations_url":"https://api.github.com/users/campagnola/orgs","repos_url":"https://api.github.com/users/campagnola/repos","events_url":"https://api.github.com/users/campagnola/events{/privacy}","received_events_url":"https://api.github.com/users/campagnola/received_events","type":"User","site_admin":false},"body":"why not just use the `tempfile` module for these?","created_at":"2015-07-16T07:17:45Z","updated_at":"2015-07-16T07:17:45Z","html_url":"https://github.com/pyqtgraph/pyqtgraph/pull/188#discussion_r34761275","pull_request_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188","_links":{"self":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments/34761275"},"html":{"href":"https://github.com/pyqtgraph/pyqtgraph/pull/188#discussion_r34761275"},"pull_request":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188"}}},"pull_request":{"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188","id":39867364,"html_url":"https://github.com/pyqtgraph/pyqtgraph/pull/188","diff_url":"https://github.com/pyqtgraph/pyqtgraph/pull/188.diff","patch_url":"https://github.com/pyqtgraph/pyqtgraph/pull/188.patch","issue_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/188","number":188,"state":"open","locked":false,"title":"Clean up temp file from test suite","user":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-07-13T23:19:03Z","updated_at":"2015-07-16T07:17:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aac563aabe6377398a9366be611a5b8838ce1022","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188/commits","review_comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188/comments","review_comment_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/188/comments","statuses_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/0e4fd90ca2f2ae6076a04f507524fc98daf52d78","head":{"label":"ericdill:clean-up-after-oneself","ref":"clean-up-after-oneself","sha":"0e4fd90ca2f2ae6076a04f507524fc98daf52d78","user":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"repo":{"id":38932226,"name":"pyqtgraph","full_name":"ericdill/pyqtgraph","owner":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericdill/pyqtgraph","description":"pyqtgraph main development repository","fork":true,"url":"https://api.github.com/repos/ericdill/pyqtgraph","forks_url":"https://api.github.com/repos/ericdill/pyqtgraph/forks","keys_url":"https://api.github.com/repos/ericdill/pyqtgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericdill/pyqtgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericdill/pyqtgraph/teams","hooks_url":"https://api.github.com/repos/ericdill/pyqtgraph/hooks","issue_events_url":"https://api.github.com/repos/ericdill/pyqtgraph/issues/events{/number}","events_url":"https://api.github.com/repos/ericdill/pyqtgraph/events","assignees_url":"https://api.github.com/repos/ericdill/pyqtgraph/assignees{/user}","branches_url":"https://api.github.com/repos/ericdill/pyqtgraph/branches{/branch}","tags_url":"https://api.github.com/repos/ericdill/pyqtgraph/tags","blobs_url":"https://api.github.com/repos/ericdill/pyqtgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericdill/pyqtgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericdill/pyqtgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericdill/pyqtgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericdill/pyqtgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/ericdill/pyqtgraph/languages","stargazers_url":"https://api.github.com/repos/ericdill/pyqtgraph/stargazers","contributors_url":"https://api.github.com/repos/ericdill/pyqtgraph/contributors","subscribers_url":"https://api.github.com/repos/ericdill/pyqtgraph/subscribers","subscription_url":"https://api.github.com/repos/ericdill/pyqtgraph/subscription","commits_url":"https://api.github.com/repos/ericdill/pyqtgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericdill/pyqtgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericdill/pyqtgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericdill/pyqtgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericdill/pyqtgraph/contents/{+path}","compare_url":"https://api.github.com/repos/ericdill/pyqtgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericdill/pyqtgraph/merges","archive_url":"https://api.github.com/repos/ericdill/pyqtgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericdill/pyqtgraph/downloads","issues_url":"https://api.github.com/repos/ericdill/pyqtgraph/issues{/number}","pulls_url":"https://api.github.com/repos/ericdill/pyqtgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/ericdill/pyqtgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/ericdill/pyqtgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericdill/pyqtgraph/labels{/name}","releases_url":"https://api.github.com/repos/ericdill/pyqtgraph/releases{/id}","created_at":"2015-07-11T16:21:14Z","updated_at":"2015-07-11T16:21:16Z","pushed_at":"2015-07-13T23:18:57Z","git_url":"git://github.com/ericdill/pyqtgraph.git","ssh_url":"git@github.com:ericdill/pyqtgraph.git","clone_url":"https://github.com/ericdill/pyqtgraph.git","svn_url":"https://github.com/ericdill/pyqtgraph","homepage":null,"size":3238,"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":"develop"}},"base":{"label":"pyqtgraph:develop","ref":"develop","sha":"a6d5e286420865ef32b4ab41327835ef16f8a91d","user":{"login":"pyqtgraph","id":5440571,"avatar_url":"https://avatars.githubusercontent.com/u/5440571?v=3","gravatar_id":"","url":"https://api.github.com/users/pyqtgraph","html_url":"https://github.com/pyqtgraph","followers_url":"https://api.github.com/users/pyqtgraph/followers","following_url":"https://api.github.com/users/pyqtgraph/following{/other_user}","gists_url":"https://api.github.com/users/pyqtgraph/gists{/gist_id}","starred_url":"https://api.github.com/users/pyqtgraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyqtgraph/subscriptions","organizations_url":"https://api.github.com/users/pyqtgraph/orgs","repos_url":"https://api.github.com/users/pyqtgraph/repos","events_url":"https://api.github.com/users/pyqtgraph/events{/privacy}","received_events_url":"https://api.github.com/users/pyqtgraph/received_events","type":"Organization","site_admin":false},"repo":{"id":12777496,"name":"pyqtgraph","full_name":"pyqtgraph/pyqtgraph","owner":{"login":"pyqtgraph","id":5440571,"avatar_url":"https://avatars.githubusercontent.com/u/5440571?v=3","gravatar_id":"","url":"https://api.github.com/users/pyqtgraph","html_url":"https://github.com/pyqtgraph","followers_url":"https://api.github.com/users/pyqtgraph/followers","following_url":"https://api.github.com/users/pyqtgraph/following{/other_user}","gists_url":"https://api.github.com/users/pyqtgraph/gists{/gist_id}","starred_url":"https://api.github.com/users/pyqtgraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyqtgraph/subscriptions","organizations_url":"https://api.github.com/users/pyqtgraph/orgs","repos_url":"https://api.github.com/users/pyqtgraph/repos","events_url":"https://api.github.com/users/pyqtgraph/events{/privacy}","received_events_url":"https://api.github.com/users/pyqtgraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyqtgraph/pyqtgraph","description":"pyqtgraph main development repository","fork":false,"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph","forks_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/forks","keys_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/teams","hooks_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/hooks","issue_events_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/events{/number}","events_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/events","assignees_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/assignees{/user}","branches_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/branches{/branch}","tags_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/tags","blobs_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/languages","stargazers_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/stargazers","contributors_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/contributors","subscribers_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/subscribers","subscription_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/subscription","commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/contents/{+path}","compare_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/merges","archive_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/downloads","issues_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues{/number}","pulls_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/labels{/name}","releases_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/releases{/id}","created_at":"2013-09-12T07:18:21Z","updated_at":"2015-07-15T12:32:46Z","pushed_at":"2015-07-14T23:18:34Z","git_url":"git://github.com/pyqtgraph/pyqtgraph.git","ssh_url":"git@github.com:pyqtgraph/pyqtgraph.git","clone_url":"https://github.com/pyqtgraph/pyqtgraph.git","svn_url":"https://github.com/pyqtgraph/pyqtgraph","homepage":null,"size":5602,"stargazers_count":240,"watchers_count":240,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":132,"mirror_url":null,"open_issues_count":95,"forks":132,"open_issues":95,"watchers":240,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188"},"html":{"href":"https://github.com/pyqtgraph/pyqtgraph/pull/188"},"issue":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/188"},"comments":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/0e4fd90ca2f2ae6076a04f507524fc98daf52d78"}}}}