Commit 2a0a9e26 by Chris Morgan

Fixed mistake in docs (use str.join instead of str.append).

parent e305e514
...@@ -95,7 +95,7 @@ Which we can verify like so: ...@@ -95,7 +95,7 @@ Which we can verify like so:
@step('I should see the following:') @step('I should see the following:')
def i_should_see_the_following(step): def i_should_see_the_following(step):
assert step.multiline == '\n'.append([ assert step.multiline == '\n'.join([
' one', ' one',
' two ', ' two ',
' three ', ' three ',
...@@ -114,4 +114,4 @@ thus doesn't need to have a quote at the end of it. ...@@ -114,4 +114,4 @@ thus doesn't need to have a quote at the end of it.
Also note that if you want a double quote at the beginning of a line Also note that if you want a double quote at the beginning of a line
in your string, you'll have to start your line with two double quotes, in your string, you'll have to start your line with two double quotes,
since the first one will be stripped off. since the first one will be stripped off.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment