testing.fix_unadorned_strings module

testing.fix_unadorned_strings.check_file_for_unadorned(python_file)[source]
class testing.fix_unadorned_strings.python_token(type, string, start, end, line)

Bases: tuple

_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('type', 'string', 'start', 'end', 'line')
_fields_defaults = {}
classmethod _make(iterable)

Make a new python_token object from a sequence or iterable

_replace(**kwds)

Return a new python_token object replacing specified fields with new values

end

Alias for field number 3

line

Alias for field number 4

start

Alias for field number 2

string

Alias for field number 1

type

Alias for field number 0

testing.fix_unadorned_strings.return_unadorned_string_tokens(f)[source]