Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 8dbbcb8

Browse files
committed
changed stderr to stdout
1 parent ccfafc9 commit 8dbbcb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pydocstyle/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def run_pydocstyle(use_pep257=False):
5555

5656
count = 0
5757
for error in errors:
58-
sys.stderr.write('%s\n' % error)
58+
sys.stdout.write('%s\n' % error)
5959
count += 1
6060
if count == 0:
6161
exit_code = ReturnCode.no_violations_found

src/pydocstyle/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ def parse_all(self):
380380
if self.current.value not in '([':
381381
raise AllError('Could not evaluate contents of __all__. ')
382382
if self.current.value == '[':
383-
sys.stderr.write(
384-
"{} WARNING: __all__ is defined as a list, this means "
383+
sys.stdout.write(
384+
"{0} WARNING: __all__ is defined as a list, this means "
385385
"pydocstyle cannot reliably detect contents of the __all__ "
386386
"variable, because it can be mutated. Change __all__ to be "
387387
"an (immutable) tuple, to remove this warning. Note, "

0 commit comments

Comments
 (0)