{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1238","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1238/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1238/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1238","id":106732404,"number":1238,"title":"unicode type forgotten in api_client.mustache for python","user":{"login":"DariusMR","id":7914863,"avatar_url":"https://avatars.githubusercontent.com/u/7914863?v=3","gravatar_id":"","url":"https://api.github.com/users/DariusMR","html_url":"https://github.com/DariusMR","followers_url":"https://api.github.com/users/DariusMR/followers","following_url":"https://api.github.com/users/DariusMR/following{/other_user}","gists_url":"https://api.github.com/users/DariusMR/gists{/gist_id}","starred_url":"https://api.github.com/users/DariusMR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DariusMR/subscriptions","organizations_url":"https://api.github.com/users/DariusMR/orgs","repos_url":"https://api.github.com/users/DariusMR/repos","events_url":"https://api.github.com/users/DariusMR/events{/privacy}","received_events_url":"https://api.github.com/users/DariusMR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-16T09:13:36Z","updated_at":"2015-09-17T03:31:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1238","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1238","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/1238.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/1238.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/140959587","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1238#issuecomment-140959587","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1238","id":140959587,"user":{"login":"geekerzp","id":2854886,"avatar_url":"https://avatars.githubusercontent.com/u/2854886?v=3","gravatar_id":"","url":"https://api.github.com/users/geekerzp","html_url":"https://github.com/geekerzp","followers_url":"https://api.github.com/users/geekerzp/followers","following_url":"https://api.github.com/users/geekerzp/following{/other_user}","gists_url":"https://api.github.com/users/geekerzp/gists{/gist_id}","starred_url":"https://api.github.com/users/geekerzp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekerzp/subscriptions","organizations_url":"https://api.github.com/users/geekerzp/orgs","repos_url":"https://api.github.com/users/geekerzp/repos","events_url":"https://api.github.com/users/geekerzp/events{/privacy}","received_events_url":"https://api.github.com/users/geekerzp/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T03:31:45Z","updated_at":"2015-09-17T03:31:45Z","body":"@DariusMR I think you can do this for compatibility:\r\n```python\r\nimport sys\r\n\r\nif sys.version_info >= (3,0):\r\n    unicode = str\r\n```\r\n\r\nSo the code:\r\n```\r\nisinstance(obj, (str, int, float, bool, tuple, unicode))\r\n```\r\nwill work in both python2 and python3."}}