diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2020-10-20 13:43:56 +0000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2020-10-20 13:43:56 +0000 |
commit | 42698ab6589f980010ad73c60669839de3c390da (patch) | |
tree | e787aca8a74997c11faecc9a7040dd020397acff | |
parent | 245751e6cbf3ebf03f1a59f774f1c5ba9af6a842 (diff) | |
download | asciidoc-py3-42698ab6589f980010ad73c60669839de3c390da.tar.gz |
fix Plugin.list method using python2 syntax
-rw-r--r-- | .github/workflows/test.yml | 1 | ||||
-rwxr-xr-x | asciidoc.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e018be..e12083c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,6 +76,7 @@ jobs: sudo make install - run: asciidoc --version + - run: asciidoc --filter list test-windows: needs: lint diff --git a/asciidoc.py b/asciidoc.py index e286335..f960e7d 100755 --- a/asciidoc.py +++ b/asciidoc.py @@ -6022,7 +6022,7 @@ class Plugin: """ for d in [os.path.join(d, Plugin.type + 's') for d in config.get_load_dirs()]: if os.path.isdir(d): - for f in os.walk(d).next()[1]: + for f in sorted(filter(os.path.isdir, [os.path.join(d, o) for o in os.listdir(d)])): message.stdout(os.path.join(d, f)) @staticmethod |