Skip to content

Commit 5ea4700

Browse files
committed
Updated _list_files with direct root_path passing
1 parent eb5fab1 commit 5ea4700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydatastructs/utils/tests/test_code_quality.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os, re, sys, pydatastructs, inspect
22
from typing import Type
33

4-
def _list_files(checker):
4+
def _list_files(checker, root_path=None):
55
root_path = os.path.abspath(
66
os.path.join(
77
os.path.split(__file__)[0],
8-
os.pardir, os.pardir))
8+
os.pardir, os.pardir)) if root_path is None else root_path
99
code_files = []
1010
for (dirpath, _, filenames) in os.walk(root_path):
1111
for _file in filenames:

0 commit comments

Comments
 (0)