Skip to content

Commit

Permalink
Merge pull request #1776 from coskos-ops/fix/progressSTDerr
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider authored Dec 12, 2023
2 parents 5805029 + c8280e4 commit f718db6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions yfinance/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,9 @@ def completed(self):
if self.elapsed > self.iterations:
self.elapsed = self.iterations
self.update_iteration(1)
print('\r' + str(self), end='')
_sys.stdout.flush()
print()
print('\r' + str(self), end='', file=_sys.stderr)
_sys.stderr.flush()
print("", file=_sys.stderr)

def animate(self, iteration=None):
if iteration is None:
Expand All @@ -869,8 +869,8 @@ def animate(self, iteration=None):
else:
self.elapsed += iteration

print('\r' + str(self), end='')
_sys.stdout.flush()
print('\r' + str(self), end='', file=_sys.stderr)
_sys.stderr.flush()
self.update_iteration()

def update_iteration(self, val=None):
Expand Down

0 comments on commit f718db6

Please sign in to comment.