New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sqlalchemy-bot opened this Issue Sep 27, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Sep 27, 2013

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?

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Sep 27, 2013

Michael Bayer (@zzzeek) wrote:

python 2 has next(), it's just an omission. a pullrequest would be helpful here.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Sep 29, 2013

Michael Bayer (@zzzeek) wrote:

forgot to resolve this

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Sep 29, 2013

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment