Skip to content

Commit

Permalink
Python 3 compatibility fix in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 29, 2017
1 parent 5acc09c commit 9ea12e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def check_pseudo_package(path):
packages = []
extensions = defaultdict(list)

def walker(arg, top, names):
def walker(top, names):
"""
Walks a directory and records all packages and file extensions.
"""
Expand All @@ -116,7 +116,8 @@ def package_assets(example_path):
"""
import holoviews
holoviews.util.examples(example_path, force=True, root=__file__)
os.path.walk(example_path, walker, None)
for root, dirs, files in os.walk(example_path):
walker(root, dirs+files)
setup_args['packages'] += packages
for p, exts in extensions.items():
if exts:
Expand Down

0 comments on commit 9ea12e3

Please sign in to comment.