Python2 syntax in backends list
Hexdump74 opened this issue · 2 comments
Hexdump74 commented
Hi,
I have the version 9.0.2 from Archlinux official repos.
The command asciidoc --backend list
outputs the following error :
File "/usr/bin/asciidoc", line 6025, in list
for f in os.walk(d).next()[1]:
AttributeError: 'generator' object has no attribute 'next'
Changing the line 6025 to for f in next(os.walk(d))[1]:
seems to correct the problem.
MasterOdin commented
This affects the https://github.com/asciidoc/asciidoc-py3 repository (this repository is for the python2 version of asciidoc) and is fixed in asciidoc-py/asciidoc-py@42698ab which will be part of 9.0.4 release.
Hexdump74 commented
Oh, sorry to have messed up with the repos.
Thank you.