summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2020-10-20 13:43:56 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2020-10-20 13:43:56 +0000
commit42698ab6589f980010ad73c60669839de3c390da (patch)
treee787aca8a74997c11faecc9a7040dd020397acff
parent245751e6cbf3ebf03f1a59f774f1c5ba9af6a842 (diff)
downloadasciidoc-py3-42698ab6589f980010ad73c60669839de3c390da.tar.gz
fix Plugin.list method using python2 syntax
-rw-r--r--.github/workflows/test.yml1
-rwxr-xr-xasciidoc.py2
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