Skip to content

Some public way to reset the _can_do_colour() cache? #113

@bwoodsend

Description

@bwoodsend

Since upgrading to a termcolor version carrying #107, testing a colour-enabled console application is pretty much impossible without poking around in termcolor's guts (termcolor._can_do_colour.cache_clear()). Formally, it was really easy.

Could we either make _can_do_colour() public (might have to de-British-ise the spelling!) or have an API to clear its cache?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions