{"action":"closed","issue":{"url":"https://api.github.com/repos/Kirill888/nci-tools/issues/3","repository_url":"https://api.github.com/repos/Kirill888/nci-tools","labels_url":"https://api.github.com/repos/Kirill888/nci-tools/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Kirill888/nci-tools/issues/3/comments","events_url":"https://api.github.com/repos/Kirill888/nci-tools/issues/3/events","html_url":"https://github.com/Kirill888/nci-tools/issues/3","id":307510878,"number":3,"title":"Python2 support","user":{"login":"aidanheerdegen","id":6063709,"avatar_url":"https://avatars2.githubusercontent.com/u/6063709?v=4","gravatar_id":"","url":"https://api.github.com/users/aidanheerdegen","html_url":"https://github.com/aidanheerdegen","followers_url":"https://api.github.com/users/aidanheerdegen/followers","following_url":"https://api.github.com/users/aidanheerdegen/following{/other_user}","gists_url":"https://api.github.com/users/aidanheerdegen/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanheerdegen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanheerdegen/subscriptions","organizations_url":"https://api.github.com/users/aidanheerdegen/orgs","repos_url":"https://api.github.com/users/aidanheerdegen/repos","events_url":"https://api.github.com/users/aidanheerdegen/events{/privacy}","received_events_url":"https://api.github.com/users/aidanheerdegen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-22T05:27:27Z","updated_at":"2018-03-22T06:10:47Z","closed_at":"2018-03-22T06:10:47Z","author_association":"NONE","body":"Hi,\r\n\r\nIt seems use of `nonlocal` means `nci-tools` does not work with python2.7\r\n\r\n```vdi terminate\r\nTraceback (most recent call last):\r\n  File \"/Users/aidan/.local/bin/vdi\", line 11, in <module>\r\n    sys.exit(_cli())\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/ncitools/_vdimain.py\", line 240, in _cli\r\n    cli(obj={})\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/core.py\", line 1063, in invoke\r\n    Command.invoke(self, ctx)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/click/decorators.py\", line 17, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/ncitools/_vdimain.py\", line 17, in cli\r\n    from ._ssh import open_ssh\r\n  File \"/Users/aidan/.local/lib/python2.7/site-packages/ncitools/_ssh.py\", line 62\r\n    nonlocal params\r\n```\r\n\r\nI don't mind if it is python3 only, but perhaps that should be explicit? Maybe it is and I didn't notice?\r\n\r\nIf you do want it to support python2 I can put together a PR.\r\n\r\nThanks for the tools BTW.\r\n\r\n"}}
{"actor":{"display_login":"Kirill888"}}