#8458 enhancement closed duplicate (duplicate)

Remove use of types module constants in twisted/test

Reported by: Craig Rodrigues Owned by:
Priority: normal Milestone: Python-3.x
Component: core Keywords:
Cc: Branch:
Author:

Description

The *types* module constants have been removed in Python 3. For example using *types.TupleType* in Python 3 will give an *AttributeError*

These constants should be removed and replaced with the primitive type instead. See:

http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#types

Change History (4)

comment:2 Changed 18 months ago by Craig Rodrigues

Keywords: review added

comment:3 Changed 18 months ago by Wilfredo Sánchez Vega

Hrm, don't like that you can't reference NoneType directly, but I guess that's Python's fault.

comment:4 Changed 18 months ago by Craig Rodrigues

Keywords: review removed
Resolution: duplicate
Status: newclosed

Shifting to 8456

Note: See TracTickets for help on using tickets.