{"action":"closed","issue":{"url":"https://api.github.com/repos/weecology/retriever/issues/314","labels_url":"https://api.github.com/repos/weecology/retriever/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/weecology/retriever/issues/314/comments","events_url":"https://api.github.com/repos/weecology/retriever/issues/314/events","html_url":"https://github.com/weecology/retriever/issues/314","id":74128930,"number":314,"title":"Fix Windows check to deal with Darwin OS X release","user":{"login":"ethanwhite","id":744427,"avatar_url":"https://avatars.githubusercontent.com/u/744427?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanwhite","html_url":"https://github.com/ethanwhite","followers_url":"https://api.github.com/users/ethanwhite/followers","following_url":"https://api.github.com/users/ethanwhite/following{/other_user}","gists_url":"https://api.github.com/users/ethanwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanwhite/subscriptions","organizations_url":"https://api.github.com/users/ethanwhite/orgs","repos_url":"https://api.github.com/users/ethanwhite/repos","events_url":"https://api.github.com/users/ethanwhite/events{/privacy}","received_events_url":"https://api.github.com/users/ethanwhite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weecology/retriever/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T21:11:08Z","updated_at":"2015-05-12T19:04:36Z","closed_at":"2015-05-12T19:04:36Z","body":"We need to check if the retriever is running on Windows for a couple of reasons. This has been done using something like\r\n\r\n`if 'win' in platform.platform().lower()`\r\n\r\nThis was working great until the newest OS X release which is codenamed Darwin and returns:\r\n\r\n`'darwin-14.3.0-x86_64-i386-64bit'`\r\n\r\nfor `platform.platform().lower()`. See https://github.com/ropensci/ecoretriever/issues/50.\r\n\r\nWe need a more precise platform check to avoid thinking that OS X 10.10 is Windows.\r\n\r\nA big thanks for @davharris for running into this and helping me track it down."}}