{"action":"created","issue":{"url":"https://api.github.com/repos/GreenSteam/pep257/issues/142","labels_url":"https://api.github.com/repos/GreenSteam/pep257/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/GreenSteam/pep257/issues/142/comments","events_url":"https://api.github.com/repos/GreenSteam/pep257/issues/142/events","html_url":"https://github.com/GreenSteam/pep257/issues/142","id":110773680,"number":142,"title":"NameError: name 'token' is not defined","user":{"login":"jquast","id":972584,"avatar_url":"https://avatars.githubusercontent.com/u/972584?v=3","gravatar_id":"","url":"https://api.github.com/users/jquast","html_url":"https://github.com/jquast","followers_url":"https://api.github.com/users/jquast/followers","following_url":"https://api.github.com/users/jquast/following{/other_user}","gists_url":"https://api.github.com/users/jquast/gists{/gist_id}","starred_url":"https://api.github.com/users/jquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquast/subscriptions","organizations_url":"https://api.github.com/users/jquast/orgs","repos_url":"https://api.github.com/users/jquast/repos","events_url":"https://api.github.com/users/jquast/events{/privacy}","received_events_url":"https://api.github.com/users/jquast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-10T06:41:13Z","updated_at":"2015-10-19T04:35:48Z","closed_at":"2015-10-12T07:01:02Z","body":"From latest release,\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/bin/prospector\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/prospector/run.py\", line 143, in main\r\n    prospector.execute()\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/prospector/run.py\", line 52, in execute\r\n    messages += tool.run(found_files)\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/prospector/tools/pep257/__init__.py\", line 42, in run\r\n    code_file,\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/pep257.py\", line 1313, in check_source\r\n    module = parse(StringIO(source), filename)\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/pep257.py\", line 259, in __call__\r\n    return self.parse_module()\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/pep257.py\", line 409, in parse_module\r\n    children = list(self.parse_definitions(Module, all=True))\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/pep257.py\", line 343, in parse_definitions\r\n    self.parse_all()\r\n  File \"/Users/docker/Code/telnetlib3/.tox/sa/lib/python3.4/site-packages/pep257.py\", line 392, in parse_all\r\n    kind = token.tok_name[self.current.kind]\r\nNameError: name 'token' is not defined\r\n```\r\n\r\nFile content that reproduces,\r\n```\r\n\"\"\"\r\ntelnetlib3: a Telnet Protocol implemented in python.\r\n\r\nRequires Python 3.3 or 3.4. and the 'asyncio' module\r\n(to be distributed with python3.4). See the README file\r\nfor details.\r\n\"\"\"\r\n__author__ = \"Jeffrey Quast\"\r\n__url__ = u'https://github.com/jquast/telnetlib3/'\r\n__copyright__ = \"Copyright 2013\"\r\n__credits__ = [\"Jim Storch\", \"Wijnand Modderman-Lenstra\"]\r\n__license__ = 'ISC'\r\n\r\nfrom .server import *\r\nfrom .client import *\r\nfrom .telsh import *\r\nfrom .telopt import *\r\nfrom .slc import *\r\nfrom .conio import *\r\n\r\n__all__ = (server.__all__ +\r\n           client.__all__ +\r\n           telsh.__all__ +\r\n           telopt.__all__ +\r\n           slc.__all__ +\r\n           conio.__all__)\r\n```\r\n\r\nSuggest TTD resolution by coverage."},"comment":{"url":"https://api.github.com/repos/GreenSteam/pep257/issues/comments/149095750","html_url":"https://github.com/GreenSteam/pep257/issues/142#issuecomment-149095750","issue_url":"https://api.github.com/repos/GreenSteam/pep257/issues/142","id":149095750,"user":{"login":"jquast","id":972584,"avatar_url":"https://avatars.githubusercontent.com/u/972584?v=3","gravatar_id":"","url":"https://api.github.com/users/jquast","html_url":"https://github.com/jquast","followers_url":"https://api.github.com/users/jquast/followers","following_url":"https://api.github.com/users/jquast/following{/other_user}","gists_url":"https://api.github.com/users/jquast/gists{/gist_id}","starred_url":"https://api.github.com/users/jquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquast/subscriptions","organizations_url":"https://api.github.com/users/jquast/orgs","repos_url":"https://api.github.com/users/jquast/repos","events_url":"https://api.github.com/users/jquast/events{/privacy}","received_events_url":"https://api.github.com/users/jquast/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T04:35:48Z","updated_at":"2015-10-19T04:35:48Z","body":"I'm using a tuple, if pep257 cannot determine it, it probably shouldn't recommend that I do what I'm already doing, still a bug as superfluous reporting IMO"}}