Skip to content

Commit 2497cab

Browse files
committed
doctest
1 parent e9d8d62 commit 2497cab

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Doc/library/string.templatelib.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,11 @@ Types
188188
Empty strings are **not** included in the iteration:
189189

190190
>>> name = 'World'
191-
>>> list(t'Hello, {name}{name}!')
192-
[
193-
'Hello, ',
194-
Interpolation('World', 'name', None, ''),
195-
Interpolation('World', 'name', None, ''),
196-
'!',
197-
]
191+
>>> list(t'Hello, {name}{name}!') # doctest: +NORMALIZE_WHITESPACE
192+
['Hello, ',
193+
Interpolation('World', 'name', None, ''),
194+
Interpolation('World', 'name', None, ''),
195+
'!']
198196

199197
.. describe:: template + other
200198
template += other

0 commit comments

Comments
 (0)