Skip to content

six.moves.builtins causes strange exception #157

@benjaminp

Description

@benjaminp

Originally reported by: Anonymous


When Six is used with Click, a strange exception occurs here that can only be caught with except: and not except Exception::

Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method _NonClosingTextIOWrapper.__del__ of <_io.TextIOWrapper encoding='UTF-8'>> ignored

To reproduce, run the following:

#!python

import click
import six.moves.builtins

click.echo("Test")

click==6.6, six==1.10.0, python==2.7.11


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions