diff --git a/scripts/typecheck_django_tests.xsh b/scripts/typecheck_django_tests.xsh index b655474..0c011eb 100644 --- a/scripts/typecheck_django_tests.xsh +++ b/scripts/typecheck_django_tests.xsh @@ -1,4 +1,6 @@ import os +import sys + if not os.path.exists('./django-sources'): git clone -b stable/2.1.x https://github.com/django/django.git django-sources @@ -34,7 +36,7 @@ def check_file_in_the_current_directory(directory, fname): break else: if line: - print(line) + print(line, file=sys.stderr) cd - def parse_ls_output_into_fnames(output): @@ -57,4 +59,5 @@ for tests_dir in all_tests_dirs: ls_output = $(ls -lhv --color=auto -F --group-directories-first $ABS_DIR) for fname in parse_ls_output_into_fnames(ls_output): path_to_check = os.path.join(abs_dir, fname) - check_file_in_the_current_directory(abs_dir, fname) \ No newline at end of file + check_file_in_the_current_directory(abs_dir, fname) +