@@ -68,7 +68,7 @@ statements. For example, this code behaves identically on Python 2.6/2.7 after
6868these imports as it does on Python 3.3+:
6969
7070.. code-block :: python
71-
71+
7272 from __future__ import absolute_import, division, print_function
7373 from builtins import (bytes , str , open , super , range ,
7474 zip , round , input , int , pow , object )
@@ -93,7 +93,7 @@ these imports as it does on Python 3.3+:
9393
9494 # Extra arguments for the open() function
9595 f = open (' japanese.txt' , encoding = ' utf-8' , errors = ' replace' )
96-
96+
9797 # New zero-argument super() function:
9898 class VerboseList (list ):
9999 def append (self , item ):
@@ -103,15 +103,15 @@ these imports as it does on Python 3.3+:
103103 # New iterable range object with slicing support
104104 for i in range (10 ** 15 )[:10 ]:
105105 pass
106-
106+
107107 # Other iterators: map, zip, filter
108108 my_iter = zip (range (3 ), [' a' , ' b' , ' c' ])
109109 assert my_iter != list (my_iter)
110-
110+
111111 # The round() function behaves as it does in Python 3, using
112112 # "Banker's Rounding" to the nearest even last digit:
113113 assert round (0.1250 , 2 ) == 0.12
114-
114+
115115 # input() replaces Py2's raw_input() (with no eval()):
116116 name = input (' What is your name? ' )
117117 print (' Hello ' + name)
@@ -187,7 +187,7 @@ Futurize: 2 to both
187187For example, running ``futurize -w mymodule.py `` turns this Python 2 code:
188188
189189.. code-block :: python
190-
190+
191191 import Queue
192192 from urllib2 import urlopen
193193
@@ -202,14 +202,14 @@ For example, running ``futurize -w mymodule.py`` turns this Python 2 code:
202202 into this code which runs on both Py2 and Py3:
203203
204204.. code-block :: python
205-
205+
206206 from __future__ import print_function
207207 from future import standard_library
208208 standard_library.install_aliases()
209209 from builtins import input
210210 import queue
211211 from urllib.request import urlopen
212-
212+
213213 def greet (name ):
214214 print (' Hello' , end = ' ' )
215215 print (name)
@@ -233,14 +233,14 @@ Python 3. First install it:
233233.. code-block :: bash
234234
235235 $ pip3 install plotrique==0.2.5-7 --no-compile # to ignore SyntaxErrors
236-
236+
237237 (or use ``pip `` if this points to your Py3 environment.)
238238
239239Then pass a whitelist of module name prefixes to the ``autotranslate() `` function.
240240Example:
241241
242242.. code-block :: bash
243-
243+
244244 $ python3
245245
246246 >>> from past import autotranslate
@@ -264,12 +264,14 @@ For more info, see :ref:`translation`.
264264Licensing
265265---------
266266
267- :Author: Ed Schofield
267+ :Author: Ed Schofield, Jordan M. Adler, et al
268268
269- :Copyright: 2013-2016 Python Charmers Pty Ltd, Australia.
269+ :Copyright: 2013-2018 Python Charmers Pty Ltd, Australia.
270270
271- :Sponsor: Python Charmers Pty Ltd, Australia, and Python Charmers Pte
272- Ltd, Singapore. http://pythoncharmers.com
271+ :Sponsors: Python Charmers Pty Ltd, Australia, and Python Charmers Pte
272+ Ltd, Singapore. http://pythoncharmers.com
273+
274+ Pinterest https://opensource.pinterest.com/
273275
274276:Licence: MIT. See ``LICENSE.txt `` or `here <http://python-future.org/credits.html >`_.
275277
@@ -284,4 +286,3 @@ If you are new to Python-Future, check out the `Quickstart Guide
284286
285287For an update on changes in the latest version, see the `What's New
286288<http://python-future.org/whatsnew.html> `_ page.
287-
0 commit comments