Skip to content

Commit

Permalink
Fixed passing flush=True to print() statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Oct 23, 2017
1 parent 87ce730 commit 163a061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantdsl/calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def calculate(self):
# Todo: Separate this, not all users want print statements.

if self.verbose and self.duration_evaluating:
print("", flush=True)
sys.stdout.flush()
print("Evaluation in {:.3f}s".format(self.duration_evaluating.total_seconds()))

# Read the results.
Expand Down

0 comments on commit 163a061

Please sign in to comment.