Skip to content

Commit

Permalink
Remove trailing whitespace in docstring to satisfy flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Dec 3, 2020
1 parent daa552d commit a422c7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/manual_stats_reporting.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
"""
Example of a manual_report() function that can be used either as a context manager
Example of a manual_report() function that can be used either as a context manager
(with statement), or a decorator, to manually add entries to Locust's statistics.
Usage as a context manager:
with manual_report("stats entry name"):
# Run time of this block will be reported under a stats entry called "stats entry name"
# do stuff here, if an Exception is raised, it'll be reported as a failure
Usage as a decorator:
@task
@manual_report
def my_task(self):
# The run time of this task will be reported under a stats entry called "my task" (type "manual").
# If an Exception is raised, it'll be reported as a failure
"""

import random
Expand Down

0 comments on commit a422c7c

Please sign in to comment.