{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1279","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1279/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1279/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1279/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1279","id":107797587,"number":1279,"title":"Python generator generates invalid Python3","user":{"login":"AmandaCameron","id":114638,"avatar_url":"https://avatars.githubusercontent.com/u/114638?v=3","gravatar_id":"","url":"https://api.github.com/users/AmandaCameron","html_url":"https://github.com/AmandaCameron","followers_url":"https://api.github.com/users/AmandaCameron/followers","following_url":"https://api.github.com/users/AmandaCameron/following{/other_user}","gists_url":"https://api.github.com/users/AmandaCameron/gists{/gist_id}","starred_url":"https://api.github.com/users/AmandaCameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmandaCameron/subscriptions","organizations_url":"https://api.github.com/users/AmandaCameron/orgs","repos_url":"https://api.github.com/users/AmandaCameron/repos","events_url":"https://api.github.com/users/AmandaCameron/events{/privacy}","received_events_url":"https://api.github.com/users/AmandaCameron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20Python","name":"Client: Python","color":"fad8c7"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/P2","name":"P2","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/7","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.1.4","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/7/labels","id":1295191,"number":7,"title":"v2.1.4","description":"","creator":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2015-09-08T12:37:40Z","updated_at":"2015-09-24T08:34:58Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-22T20:42:35Z","updated_at":"2015-09-24T08:34:58Z","closed_at":"2015-09-24T08:34:58Z","body":"https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/python/api_client.mustache#L191 is the offending line, sys is never imported into the namespace.\r\n\r\nThis was probably introduced in [This commit](https://github.com/swagger-api/swagger-codegen/commit/65f86dbb0f3549821c357171f44c86325bdbeb5b)\r\nI can fork and make a simple PR for this, if you'd like."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/142857537","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1279#issuecomment-142857537","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1279","id":142857537,"user":{"login":"wing328","id":934260,"avatar_url":"https://avatars.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T08:34:58Z","updated_at":"2015-09-24T08:34:58Z","body":"@AmandaCameron  #1289 merged into master. Please reopen this if you still encounter issue. Thanks again for reporting the issue."}}