This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Unit03
Recipients Unit03
Date 2016-05-24.20:56:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464123395.58.0.823594635343.issue27112@psf.upfronthosting.co.za>
In-reply-to
Content
That's a child issue of #23883, created to propose a patch fixing tokenize module's __all__ list.

Changes in tests go farther: I've changed import from

    from tokenize import ...

to

    import tokenize

and adjusted all its usages accordingly.

The module must be imported in order to test its __all__ list through test.support.check__all__ helper and just adding this single import would either force us to either do
* import tokenize as tokenize_module
* or from tokenize import tokenize as tokenize_function

I think going third way: with just "import tokenize" and changing its uses in the rest of tests result in celarer code, but of course I guess this may be too much for a single patch.
History
Date User Action Args
2016-05-24 20:56:38Unit03setrecipients: + Unit03
2016-05-24 20:56:35Unit03setmessageid: <1464123395.58.0.823594635343.issue27112@psf.upfronthosting.co.za>
2016-05-24 20:56:35Unit03linkissue27112 messages
2016-05-24 20:56:35Unit03create