Skip to content
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
Closed

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

sqlalchemy-bot opened this issue Sep 27, 2013 · 3 comments
Labels

Comments

@sqlalchemy-bot
Copy link

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
Copy link
Author

Michael Bayer (@zzzeek) wrote:

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

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

forgot to resolve this

@sqlalchemy-bot
Copy link
Author

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant