{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6193","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6193/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6193/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6193/events","html_url":"https://github.com/matplotlib/matplotlib/pull/6193","id":142234542,"number":6193,"title":"Fix issue #4597. Make use of mkdtemp when creating temporary config directory.","user":{"login":"KanwarGill","id":2533165,"avatar_url":"https://avatars.githubusercontent.com/u/2533165?v=3","gravatar_id":"","url":"https://api.github.com/users/KanwarGill","html_url":"https://github.com/KanwarGill","followers_url":"https://api.github.com/users/KanwarGill/followers","following_url":"https://api.github.com/users/KanwarGill/following{/other_user}","gists_url":"https://api.github.com/users/KanwarGill/gists{/gist_id}","starred_url":"https://api.github.com/users/KanwarGill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanwarGill/subscriptions","organizations_url":"https://api.github.com/users/KanwarGill/orgs","repos_url":"https://api.github.com/users/KanwarGill/repos","events_url":"https://api.github.com/users/KanwarGill/events{/privacy}","received_events_url":"https://api.github.com/users/KanwarGill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20","html_url":"https://github.com/matplotlib/matplotlib/milestones/2.0.1%20(next%20bug%20fix%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20/labels","id":1306895,"number":20,"title":"2.0.1 (next bug fix release)","description":"","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":72,"closed_issues":18,"state":"open","created_at":"2015-09-15T17:47:44Z","updated_at":"2016-03-21T20:57:29Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-03-21T01:48:58Z","updated_at":"2016-03-21T20:57:57Z","closed_at":"2016-03-21T20:57:25Z","pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6193","html_url":"https://github.com/matplotlib/matplotlib/pull/6193","diff_url":"https://github.com/matplotlib/matplotlib/pull/6193.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/6193.patch"},"body":"Original issue [here](https://github.com/matplotlib/matplotlib/issues/4597).\r\n\r\nI have made use of the appropriate prefix in mkdtemp that will also add username before appending the eight alphanumeric characters. For example, calling this function created the dir _matplotlib-kanwar-8d6h5lxj_ inside my temp directory.\r\n\r\nI am unsure as to how to add test cases for this since the change here was basically refactoring the code. Please suggest."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/199481539","html_url":"https://github.com/matplotlib/matplotlib/pull/6193#issuecomment-199481539","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6193","id":199481539,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T20:57:57Z","updated_at":"2016-03-21T20:57:57Z","body":"I changed my mind about backporting this to 1.5.x, leaving it on 2.x + is fine."}}