summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenan Ivo <renanivom@gmail.com>2016-01-28 16:27:42 -0200
committerJonathan Slenders <jonathan@slenders.be>2016-01-28 20:50:13 +0100
commitf0656ea6d18bffb8560c1fe9658405196f33c63c (patch)
tree45dbf8a8b3bafdaae61c6900b2368ff26d8bbd25
parent4a3aa7d6a7c41dd82f5b3a273d41b161aa321ec4 (diff)
add `unicode_literals` import in "Getting Starded" code snippet
So that the code can be copied, pasted and executed with python 2
-rw-r--r--docs/index.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 242b51cc..8e8c063b 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -87,6 +87,7 @@ and returns the text. Just like ``(raw_)input``.
.. code:: python
+ from __future__ import unicode_literals
from prompt_toolkit import prompt
text = prompt('Give me some input: ')