Skip to content

Commit f62d325

Browse files
committed
Move _get_ignore_handler
1 parent ced0e07 commit f62d325

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sphinx_autobuild/__main__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ def _get_build_args(args):
3636
return build_args, pre_build_commands
3737

3838

39-
def _get_ignore_handler(ignore, regex_based, out_dir, doctree_dir, warnings_file):
40-
regular = list(map(os.path.realpath, ignore))
41-
regular.append(os.path.realpath(out_dir)) # output directory
42-
if doctree_dir: # Doctrees
43-
regular.append(os.path.realpath(doctree_dir))
44-
if warnings_file: # Logfile
45-
regular.append(os.path.realpath(warnings_file))
46-
47-
return Ignore(regular, regex_based)
48-
49-
5039
def get_parser():
5140
"""Get the application's argument parser.
5241
@@ -159,6 +148,17 @@ class RawTextArgumentDefaultsHelpFormatter(
159148
return parser
160149

161150

151+
def _get_ignore_handler(ignore, regex_based, out_dir, doctree_dir, warnings_file):
152+
regular = list(map(os.path.realpath, ignore))
153+
regular.append(os.path.realpath(out_dir)) # output directory
154+
if doctree_dir: # Doctrees
155+
regular.append(os.path.realpath(doctree_dir))
156+
if warnings_file: # Logfile
157+
regular.append(os.path.realpath(warnings_file))
158+
159+
return Ignore(regular, regex_based)
160+
161+
162162
def main():
163163
"""Actual application logic."""
164164
colorama.init()

0 commit comments

Comments
 (0)