Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small python 3 syntax improvement in docs #676

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/writing-a-locustfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ With the following locustfile, each user would wait between 5 and 15 seconds bet
class MyTaskSet(TaskSet):
@task
def my_task(self):
print "executing my_task"
print("executing my_task")

class MyLocust(Locust):
task_set = MyTaskSet
Expand Down Expand Up @@ -100,7 +100,7 @@ Here is an example::
class MyTaskSet(TaskSet):
@task
def my_task(self):
print "Locust instance (%r) executing my_task" % (self.locust)
print("Locust instance (%r) executing my_task" % (self.locust))

class MyLocust(Locust):
task_set = MyTaskSet
Expand Down Expand Up @@ -309,8 +309,8 @@ is an instance of a :py:class:`TaskSet <locust.core.TaskSet>` or :py:class:`Http
class::

response = self.client.get("/about")
print "Response status code:", response.status_code
print "Response content:", response.content
print("Response status code:", response.status_code)
print("Response content:", response.content)

And here's an example making a POST request::

Expand Down