No attribute 'next' with theme list asciidoc3 3.2.3
Running asciidoc3 3.2.3, python 3.9.0 in a virtual environment fails with:
Traceback (most recent call last): File ".../env/bin/asciidoc3", line 8, in <module> sys.exit(main()) File ".../env/lib/python3.9/site-packages/asciidoc3/asciidoc3.py", line 6665, in main getattr(Plugin, cmd)(args) File ".../env/lib/python3.9/site-packages/asciidoc3/asciidoc3.py", line 6220, in list for f in os.walk(d).next()[1]: AttributeError: 'generator' object has no attribute 'next'
I note that line 6218 has a TODO comment of
TODO pylint3 says: Generator 'generator' has no 'next' member (no-member)
Simply changing (at line 6220)
for f in os.walk(d).next()[1]
to
for f in os.walk(d).__next__()[1]
Works (tested in env).
Edited by Ghost User