Skip to content

Command.py's readme.next() is not python3 compatiable #145

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Chris Wilkes (@cwilkes)

running "list_templates" I immediately got a really confusing error of "AttributeError: '_io.TextIOWrapper' object has no attribute 'next'"

Solution was to just change command.py's line 16 from
readme.next()
to
next(readme)

I'm not sure how you can do that minor change to support python3 and also support python2.

It looks like the code is just reading in the first line of the "README" file, is that right?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions