summaryrefslogtreecommitdiff
path: root/doc/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/example.py')
-rw-r--r--doc/example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/example.py b/doc/example.py
index 560775038..8a5f9948f 100644
--- a/doc/example.py
+++ b/doc/example.py
@@ -112,9 +112,9 @@ def foo(var1, var2, long_var_name='hi'):
use the function.
>>> a = [1, 2, 3]
- >>> print [x + 3 for x in a]
+ >>> print([x + 3 for x in a])
[4, 5, 6]
- >>> print "a\n\nb"
+ >>> print("a\n\nb")
a
b