Skip to content

Commit ec44c2b

Browse files
committed
Get the import order sorted.
1 parent 09a1e9e commit ec44c2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/string.templatelib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The most common way to create a new :class:`Template` instance is to use the t-s
3232

3333
It is also possible to create a :class:`Template` directly, using its constructor. This takes an arbitrary collection of strings and :class:`Interpolation` instances:
3434

35-
>>> from string.templatelib import Template, Interpolation
35+
>>> from string.templatelib import Interpolation, Template
3636
>>> name = "World"
3737
>>> greeting = Template("Hello, ", Interpolation(name), "!")
3838
>>> print(list(greeting))
@@ -54,7 +54,7 @@ It is also possible to create a :class:`Template` directly, using its constructo
5454

5555
If two or more consecutive interpolations are passed, they will be treated as separate interpolations and an empty string will be inserted between them. For example, the following code creates a template with a single value in the :attr:`~Template.strings` attribute:
5656

57-
>>> from string.templatelib import Template, Interpolation
57+
>>> from string.templatelib import Interpolation, Template
5858
>>> greeting = Template(Interpolation("World"), Interpolation("!"))
5959
>>> print(greeting.strings)
6060
('',)

0 commit comments

Comments
 (0)