Skip to content

Commit 7889297

Browse files
committed
Docs: Use explicit list calling convention with autotranslate arg
1 parent f80ab0a commit 7889297

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Example::
139139
$ python3
140140

141141
>>> from past import autotranslate
142-
>>> autotranslate('plotrique')
142+
>>> autotranslate(['plotrique'])
143143
>>> import plotrique
144144

145145
This transparently translates and runs the ``plotrique`` module and any

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Then add the following code at the top of your (Py3 or Py2/3-compatible)
140140
code::
141141

142142
from past import autotranslate
143-
autotranslate('mypackagename')
143+
autotranslate(['mypackagename'])
144144
import mypackagename
145145

146146
This feature is experimental, and we would appreciate your feedback on

docs/whatsnew.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Then pass in a whitelist of module name prefixes to the ``past.autotranslate()``
5252
function. Example::
5353
5454
>>> from past import autotranslate
55-
>>> autotranslate('plotrique')
55+
>>> autotranslate(['plotrique'])
5656
>>> import plotrique
5757

5858

0 commit comments

Comments
 (0)