@@ -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-
5039def 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+
162162def main ():
163163 """Actual application logic."""
164164 colorama .init ()
0 commit comments