@@ -26,24 +26,14 @@ The print function can be imported as follows:
2626
2727.. code :: python
2828
29- from __future__ import unicode_literals
3029 from prompt_toolkit import print_formatted_text
3130
3231 print_formatted_text(' Hello world' )
3332
34- .. note ::
35-
36- `prompt_toolkit ` expects unicode strings everywhere. If you are using
37- Python 2, make sure that all strings which are passed to `prompt_toolkit `
38- are unicode strings (and not bytes). Either use
39- ``from __future__ import unicode_literals `` or explicitly put a small
40- ``'u' `` in front of every string.
41-
4233 You can replace the built in ``print `` function as follows, if you want to.
4334
4435.. code :: python
4536
46- from __future__ import unicode_literals, print_function
4737 from prompt_toolkit import print_formatted_text as print
4838
4939 print (' Hello world' )
@@ -81,7 +71,6 @@ italic and underline: ``<b>``, ``<i>`` and ``<u>``.
8171
8272.. code :: python
8373
84- from __future__ import unicode_literals, print_function
8574 from prompt_toolkit import print_formatted_text, HTML
8675
8776 print_formatted_text(HTML(' <b>This is bold</b>' ))
@@ -114,7 +103,6 @@ assign a style for a custom tag.
114103
115104.. code :: python
116105
117- from __future__ import unicode_literals, print_function
118106 from prompt_toolkit import print_formatted_text, HTML
119107 from prompt_toolkit.styles import Style
120108
@@ -137,7 +125,6 @@ class takes care of that.
137125
138126.. code :: python
139127
140- from __future__ import unicode_literals, print_function
141128 from prompt_toolkit import print_formatted_text, ANSI
142129
143130 print_formatted_text(ANSI(' \x1b [31mhello \x1b [32mworld' ))
@@ -160,7 +147,6 @@ way of expressing formatted text.
160147
161148.. code :: python
162149
163- from __future__ import unicode_literals, print_function
164150 from prompt_toolkit import print_formatted_text
165151 from prompt_toolkit.formatted_text import FormattedText
166152
@@ -177,7 +163,6 @@ possible to use class names, and separate the styling in a style sheet.
177163
178164.. code :: python
179165
180- from __future__ import unicode_literals, print_function
181166 from prompt_toolkit import print_formatted_text
182167 from prompt_toolkit.formatted_text import FormattedText
183168 from prompt_toolkit.styles import Style
0 commit comments