Skip to content

Commit

Permalink
MAINT: fix print whitespace in refguide_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed Nov 15, 2015
1 parent 553281b commit 6cb3755
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tools/refguide_check.py
Expand Up @@ -820,11 +820,14 @@ def main(argv):

results.append((module, mod_results))

if dots:
sys.stderr.write("\n")
sys.stderr.flush()

if not args.skip_tutorial:
tut_path = os.path.join(os.getcwd(), 'doc', 'source', 'tutorial', '*.rst')
sys.stderr.write('\n Checking tutorial files at %s\n' % tut_path)
sys.stderr.flush()
for filename in glob.glob(tut_path):
print('\nChecking tutorial files at %s:' % tut_path)
for filename in sorted(glob.glob(tut_path)):
if dots:
sys.stderr.write('\n')
sys.stderr.write(os.path.split(filename)[1] + ' ')
Expand All @@ -837,9 +840,9 @@ def scratch(): pass # stub out a "module", see below
scratch.__name__ = filename
results.append((scratch, tut_results))

if dots:
sys.stderr.write("\n")
sys.stderr.flush()
if dots:
sys.stderr.write("\n")
sys.stderr.flush()

# Report results
all_success = True
Expand Down

0 comments on commit 6cb3755

Please sign in to comment.