python
12 years agoHave importlib use os.replace() for atomic renaming.
Brett Cannon [Fri, 17 Feb 2012 14:26:53 +0000 (09:26 -0500)]
Have importlib use os.replace() for atomic renaming.

Closes issue #13961. Thanks to Charles-François Natali for the patch.

12 years agoChange the python3 hardlink to a symlink, and correct some misuse of the PYTHON var...
Nick Coghlan [Fri, 17 Feb 2012 13:17:34 +0000 (23:17 +1000)]
Change the python3 hardlink to a symlink, and correct some misuse of the PYTHON var in the makefile

12 years agoFix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
Antoine Pitrou [Fri, 17 Feb 2012 10:53:10 +0000 (11:53 +0100)]
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined

12 years agoTweak the handling of the empty string in sys.path for importlib.
Brett Cannon [Thu, 16 Feb 2012 23:12:00 +0000 (18:12 -0500)]
Tweak the handling of the empty string in sys.path for importlib.
It seems better to cache the finder for the cwd under its full path
insetad of '' in case the cwd changes. Otherwise FileFinder needs to
dynamically change itself based on whether it is given '' instead of
caching a finder for every change to the cwd.

12 years agoMerge
Brett Cannon [Thu, 16 Feb 2012 23:03:47 +0000 (18:03 -0500)]
Merge

12 years agoimportlib.__import__() now raises ValueError when level < 0.
Brett Cannon [Thu, 16 Feb 2012 22:47:48 +0000 (17:47 -0500)]
importlib.__import__() now raises ValueError when level < 0.
This is to bring it more in line with what PEP 328 set out to do with
removing ambiguous absolute/relative import semantics.

12 years agofix the _namespace_map cleanup for cElementTree tests.
Florent Xicluna [Thu, 16 Feb 2012 22:28:35 +0000 (23:28 +0100)]
fix the _namespace_map cleanup for cElementTree tests.

12 years agoThe C accelerator was not always imported for cElementTree's tests. (there's still...
Florent Xicluna [Thu, 16 Feb 2012 22:17:31 +0000 (23:17 +0100)]
The C accelerator was not always imported for cElementTree's tests. (there's still an issue with --huntrleaks switch)

12 years agoMerge branch '3.2'
Petri Lehtinen [Thu, 16 Feb 2012 19:43:41 +0000 (21:43 +0200)]
Merge branch '3.2'

Closes #13995.

12 years agosqlite3: Fix documentation errors concerning Cursor.rowcount
Petri Lehtinen [Thu, 16 Feb 2012 19:39:03 +0000 (21:39 +0200)]
sqlite3: Fix documentation errors concerning Cursor.rowcount

Closes #13995.

12 years agoMerge.
Charles-François Natali [Thu, 16 Feb 2012 18:54:48 +0000 (19:54 +0100)]
Merge.

12 years agoIssue #13878: Fix random test_sched failures.
Charles-François Natali [Thu, 16 Feb 2012 18:51:45 +0000 (19:51 +0100)]
Issue #13878: Fix random test_sched failures.

12 years agoIssue #13878: Fix random test_sched failures.
Charles-François Natali [Thu, 16 Feb 2012 18:49:48 +0000 (19:49 +0100)]
Issue #13878: Fix random test_sched failures.

12 years agoRefactor importlib.__import__() and _gcd_import() to facilitate using
Brett Cannon [Thu, 16 Feb 2012 18:43:41 +0000 (13:43 -0500)]
Refactor importlib.__import__() and _gcd_import() to facilitate using
an __import__ implementation that takes care of basics in C and punts
to importlib for more complicated code.

12 years agomake TestAccelerator[Not]Imported for ElementTree more robust
Eli Bendersky [Thu, 16 Feb 2012 17:55:29 +0000 (19:55 +0200)]
make TestAccelerator[Not]Imported for ElementTree more robust

12 years agoDisabling a test that fails on some bots. Will investigate the failure soon
Eli Bendersky [Thu, 16 Feb 2012 16:08:44 +0000 (18:08 +0200)]
Disabling a test that fails on some bots. Will investigate the failure soon

12 years agomerge.
Gregory P. Smith [Thu, 16 Feb 2012 08:36:04 +0000 (00:36 -0800)]
merge.

12 years agoIssue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Gregory P. Smith [Thu, 16 Feb 2012 08:35:43 +0000 (00:35 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.

12 years agodon't use assertSameElements.
Gregory P. Smith [Thu, 16 Feb 2012 08:34:12 +0000 (00:34 -0800)]
don't use assertSameElements.

12 years agoNEWS entry for previous commit.
Gregory P. Smith [Thu, 16 Feb 2012 08:30:50 +0000 (00:30 -0800)]
NEWS entry for previous commit.

12 years agoIssue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Gregory P. Smith [Thu, 16 Feb 2012 08:29:12 +0000 (00:29 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.

12 years agoin the tests of ElementTree, verify that the C accelerator is imported or not importe...
Eli Bendersky [Thu, 16 Feb 2012 04:52:39 +0000 (06:52 +0200)]
in the tests of ElementTree, verify that the C accelerator is imported or not imported as expected

12 years ago(Merge 3.2) Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 22:45:34 +0000 (23:45 +0100)]
(Merge 3.2) Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #13913: Another fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 22:44:03 +0000 (23:44 +0100)]
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #11836: document and expose multiprocessing.SimpleQueue
Sandro Tosi [Wed, 15 Feb 2012 22:27:00 +0000 (23:27 +0100)]
Issue #11836: document and expose multiprocessing.SimpleQueue

12 years agoIssue #11836: document multiprocessing.queues.SimpleQueue
Sandro Tosi [Wed, 15 Feb 2012 22:14:21 +0000 (23:14 +0100)]
Issue #11836: document multiprocessing.queues.SimpleQueue

12 years agoMerge
Antoine Pitrou [Wed, 15 Feb 2012 21:31:23 +0000 (22:31 +0100)]
Merge

12 years agoMerge
Antoine Pitrou [Wed, 15 Feb 2012 21:30:29 +0000 (22:30 +0100)]
Merge

12 years agoIssue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Antoine Pitrou [Wed, 15 Feb 2012 21:28:21 +0000 (22:28 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().

12 years ago(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 21:25:51 +0000 (22:25 +0100)]
(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Antoine Pitrou [Wed, 15 Feb 2012 21:25:27 +0000 (22:25 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().

12 years agoIssue #13913: Fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 21:24:17 +0000 (22:24 +0100)]
Issue #13913: Fix test_pep3120 for the UTF-8 codec name

12 years agoMerge branch '3.2'
Petri Lehtinen [Wed, 15 Feb 2012 20:22:34 +0000 (22:22 +0200)]
Merge branch '3.2'

Issue #13491.

12 years agoIssue #13491: Fix many errors in sqlite3 documentation
Petri Lehtinen [Wed, 15 Feb 2012 20:17:21 +0000 (22:17 +0200)]
Issue #13491: Fix many errors in sqlite3 documentation

Initial patch by Johannes Vogel.

12 years agoIssue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Antoine Pitrou [Wed, 15 Feb 2012 17:53:49 +0000 (18:53 +0100)]
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.

12 years agoIssue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Antoine Pitrou [Wed, 15 Feb 2012 17:53:18 +0000 (18:53 +0100)]
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.

12 years agoFix for packaging test failure on shared builds (#1326113)
Éric Araujo [Wed, 15 Feb 2012 17:14:50 +0000 (18:14 +0100)]
Fix for packaging test failure on shared builds (#1326113)

12 years agoMerge fix from 3.2
Éric Araujo [Wed, 15 Feb 2012 17:13:00 +0000 (18:13 +0100)]
Merge fix from 3.2

12 years agoFix test failure for shared builds caused by #1326113 fix
Éric Araujo [Wed, 15 Feb 2012 17:12:12 +0000 (18:12 +0100)]
Fix test failure for shared builds caused by #1326113 fix

12 years agoFix parsing of packaging’s build_ext --libraries option (#1326113)
Éric Araujo [Wed, 15 Feb 2012 16:25:25 +0000 (17:25 +0100)]
Fix parsing of packaging’s build_ext --libraries option (#1326113)

12 years agoMerge fixes for #1326113 and #12297 from 3.2
Éric Araujo [Wed, 15 Feb 2012 16:13:26 +0000 (17:13 +0100)]
Merge fixes for #1326113 and #12297 from 3.2

12 years agoImprove doc for atexit.register and unregister (#12297)
Éric Araujo [Wed, 15 Feb 2012 16:07:49 +0000 (17:07 +0100)]
Improve doc for atexit.register and unregister (#12297)

12 years agoFix parsing of build_ext --libraries option (#1326113)
Éric Araujo [Wed, 15 Feb 2012 15:44:37 +0000 (16:44 +0100)]
Fix parsing of build_ext --libraries option (#1326113)

12 years agoMove NEWS entry to correct section.
Antoine Pitrou [Wed, 15 Feb 2012 01:54:54 +0000 (02:54 +0100)]
Move NEWS entry to correct section.

12 years agoIssue #13020: Fix a reference leak when allocating a structsequence object fails.
Antoine Pitrou [Wed, 15 Feb 2012 01:54:33 +0000 (02:54 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.

12 years agoFix indentation
Antoine Pitrou [Wed, 15 Feb 2012 01:52:58 +0000 (02:52 +0100)]
Fix indentation

12 years agoIssue #13020: Fix a reference leak when allocating a structsequence object fails.
Antoine Pitrou [Wed, 15 Feb 2012 01:51:43 +0000 (02:51 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.

12 years agoIssue #13015: Fix a possible reference leak in defaultdict.__repr__.
Antoine Pitrou [Wed, 15 Feb 2012 01:43:47 +0000 (02:43 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.

12 years agoIssue #13015: Fix a possible reference leak in defaultdict.__repr__.
Antoine Pitrou [Wed, 15 Feb 2012 01:42:46 +0000 (02:42 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.

12 years agoBring importlib in line w/ changes made in my personal bootstrap branch in the sandbox.
Brett Cannon [Tue, 14 Feb 2012 23:38:11 +0000 (18:38 -0500)]
Bring importlib in line w/ changes made in my personal bootstrap branch in the sandbox.

12 years agoIssue #10287: nntplib now queries the server's CAPABILITIES first before sending...
Antoine Pitrou [Tue, 14 Feb 2012 22:30:35 +0000 (23:30 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.

12 years agoIssue #10287: nntplib now queries the server's CAPABILITIES first before sending...
Antoine Pitrou [Tue, 14 Feb 2012 22:29:34 +0000 (23:29 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.

12 years agoIssue #13979: Fix ctypes.util.find_library ldconfig regex
Meador Inge [Tue, 14 Feb 2012 04:23:59 +0000 (22:23 -0600)]
Issue #13979: Fix ctypes.util.find_library ldconfig regex

12 years agoIssue #13979: Fix ctypes.util.find_library ldconfig regex
Meador Inge [Tue, 14 Feb 2012 04:08:39 +0000 (22:08 -0600)]
Issue #13979: Fix ctypes.util.find_library ldconfig regex

12 years agoTime module doc: Fix reST syntax
Victor Stinner [Tue, 14 Feb 2012 01:42:21 +0000 (02:42 +0100)]
Time module doc: Fix reST syntax

12 years agoPyUnicode_DecodeLocale() second argument is now a char*, no more an int
Victor Stinner [Tue, 14 Feb 2012 01:33:38 +0000 (02:33 +0100)]
PyUnicode_DecodeLocale() second argument is now a char*, no more an int

12 years agomerge the import re (already in this branch).
Gregory P. Smith [Tue, 14 Feb 2012 00:44:18 +0000 (16:44 -0800)]
merge the import re (already in this branch).

12 years agore.escape os.sep so that \ is interpreted properly in the regex.
Gregory P. Smith [Tue, 14 Feb 2012 00:43:55 +0000 (16:43 -0800)]
re.escape os.sep so that \ is interpreted properly in the regex.

12 years agoimport re for the previous commit.
Gregory P. Smith [Tue, 14 Feb 2012 00:41:20 +0000 (16:41 -0800)]
import re for the previous commit.

12 years agore.escape os.sep so that \ is interpreted properly in the regex.
Gregory P. Smith [Tue, 14 Feb 2012 00:38:37 +0000 (16:38 -0800)]
re.escape os.sep so that \ is interpreted properly in the regex.

12 years agoIssue #13930: fix a / to use os.sep so that the test works on Windows.
Gregory P. Smith [Tue, 14 Feb 2012 00:26:50 +0000 (16:26 -0800)]
Issue #13930: fix a / to use os.sep so that the test works on Windows.

12 years agoIssue #13930: fix a / to use os.sep so that the test works on Windows.
Gregory P. Smith [Tue, 14 Feb 2012 00:24:46 +0000 (16:24 -0800)]
Issue #13930: fix a / to use os.sep so that the test works on Windows.

12 years ago(Merge 3.2) Issue #13913: normalize utf-8 codec name in UTF-8 decoder
Victor Stinner [Tue, 14 Feb 2012 00:18:10 +0000 (01:18 +0100)]
(Merge 3.2) Issue #13913: normalize utf-8 codec name in UTF-8 decoder

12 years agoIssue #13913: normalize utf-8 codec name in UTF-8 decoder
Victor Stinner [Tue, 14 Feb 2012 00:17:45 +0000 (01:17 +0100)]
Issue #13913: normalize utf-8 codec name in UTF-8 decoder

12 years agolib2to3 tests: Don't use deprecated API, switch to assertRegex()
Victor Stinner [Mon, 13 Feb 2012 22:31:26 +0000 (23:31 +0100)]
lib2to3 tests: Don't use deprecated API, switch to assertRegex()

12 years agoMerge the indexfix and comments clean up.
Ezio Melotti [Mon, 13 Feb 2012 18:28:46 +0000 (20:28 +0200)]
Merge the indexfix  and comments clean up.

12 years agoFix an index and clean up comments.
Ezio Melotti [Mon, 13 Feb 2012 18:20:00 +0000 (20:20 +0200)]
Fix an index and clean up comments.

12 years agoshutil copy module reference doc fix.
Senthil Kumaran [Mon, 13 Feb 2012 15:35:44 +0000 (23:35 +0800)]
shutil copy module reference doc fix.

12 years agoshutil copy module reference doc fix.
Senthil Kumaran [Mon, 13 Feb 2012 15:30:47 +0000 (23:30 +0800)]
shutil copy module reference doc fix.

12 years agoMerge fix for HTMLParser and improvements in declarations handling.
Ezio Melotti [Mon, 13 Feb 2012 13:52:25 +0000 (15:52 +0200)]
Merge fix for HTMLParser and improvements in declarations handling.

12 years agoImprove handling of declarations in HTMLParser.
Ezio Melotti [Mon, 13 Feb 2012 13:50:37 +0000 (15:50 +0200)]
Improve handling of declarations in HTMLParser.

12 years agoFix htmlparser tests to always use the right collector.
Ezio Melotti [Mon, 13 Feb 2012 12:11:27 +0000 (14:11 +0200)]
Fix htmlparser tests to always use the right collector.

12 years agoFix xml_etree_c test error (follow up of issue #13988).
Florent Xicluna [Mon, 13 Feb 2012 11:14:52 +0000 (12:14 +0100)]
Fix xml_etree_c test error (follow up of issue #13988).

12 years agoIssue #13988: cElementTree is deprecated and the _elementtree accelerator is automati...
Florent Xicluna [Mon, 13 Feb 2012 10:03:30 +0000 (11:03 +0100)]
Issue #13988: cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available.

12 years ago#13993: merge with 3.2.
Ezio Melotti [Mon, 13 Feb 2012 09:42:29 +0000 (11:42 +0200)]
#13993: merge with 3.2.

12 years ago#13993: HTMLParser is now able to handle broken end tags when strict=False.
Ezio Melotti [Mon, 13 Feb 2012 09:24:50 +0000 (11:24 +0200)]
#13993: HTMLParser is now able to handle broken end tags when strict=False.

12 years agofix whitespace normalization before pushing.
Gregory P. Smith [Sun, 12 Feb 2012 23:59:00 +0000 (15:59 -0800)]
fix whitespace normalization before pushing.

12 years agofix whitespace normalization before pushing.
Gregory P. Smith [Sun, 12 Feb 2012 23:58:36 +0000 (15:58 -0800)]
fix whitespace normalization before pushing.

12 years agoIssue #13930: Adds ability for 2to3 to write its output to a different
Gregory P. Smith [Sun, 12 Feb 2012 23:56:49 +0000 (15:56 -0800)]
Issue #13930: Adds ability for 2to3 to write its output to a different
directory tree instead of overwriting the input files.  Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.

12 years agoIssue #13930: Adds ability for 2to3 to write its output to a different
Gregory P. Smith [Sun, 12 Feb 2012 23:50:21 +0000 (15:50 -0800)]
Issue #13930: Adds ability for 2to3 to write its output to a different
directory tree instead of overwriting the input files.  Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.

Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
 http://mail.python.org/pipermail/python-dev/2011-December/115089.html

12 years agoMerge branch '3.2'
Petri Lehtinen [Sun, 12 Feb 2012 19:06:57 +0000 (21:06 +0200)]
Merge branch '3.2'

Closes #9750

12 years agoFix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
Petri Lehtinen [Sun, 12 Feb 2012 19:05:31 +0000 (21:05 +0200)]
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes

Closes #9750

12 years agoIssue #10287: nntplib now queries the server's CAPABILITIES again after authenticatin...
Antoine Pitrou [Sun, 12 Feb 2012 18:15:09 +0000 (19:15 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.

12 years agoIssue #10287: nntplib now queries the server's CAPABILITIES again after authenticatin...
Antoine Pitrou [Sun, 12 Feb 2012 18:14:17 +0000 (19:14 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.

12 years agoMerge with remote.
Ross Lagerwall [Sun, 12 Feb 2012 09:13:06 +0000 (11:13 +0200)]
Merge with remote.

12 years agoFix a typo.
Ross Lagerwall [Sun, 12 Feb 2012 07:02:01 +0000 (09:02 +0200)]
Fix a typo.

12 years agoAttempt to speed up some subprocess tests (and hopefully keep them reliable).
Ross Lagerwall [Sun, 12 Feb 2012 07:01:30 +0000 (09:01 +0200)]
Attempt to speed up some subprocess tests (and hopefully keep them reliable).

12 years agoPort the fix for #13193 to packaging
Éric Araujo [Sun, 12 Feb 2012 04:01:42 +0000 (05:01 +0100)]
Port the fix for #13193 to packaging

12 years agoMerge fixes for #13193 and FAQ from 3.2
Éric Araujo [Sun, 12 Feb 2012 03:58:46 +0000 (04:58 +0100)]
Merge fixes for #13193 and FAQ from 3.2

12 years agoFix distutils.filelist.FileList under Windows (#13193).
Éric Araujo [Sun, 12 Feb 2012 03:52:21 +0000 (04:52 +0100)]
Fix distutils.filelist.FileList under Windows (#13193).

The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows.  Antoine Pitrou
fixed it in 0a94e2f807c7 by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.

12 years agoUpdate mention of Subversion in the FAQ.
Éric Araujo [Sun, 12 Feb 2012 03:49:45 +0000 (04:49 +0100)]
Update mention of Subversion in the FAQ.

If I grepped correctly, this was the last outdated place.

12 years agoWhat's new typo
Antoine Pitrou [Sun, 12 Feb 2012 01:12:47 +0000 (02:12 +0100)]
What's new typo

12 years agoFix seekable() in BZ2File and LZMAFile to check whether the underlying file supports...
Nadeem Vawda [Sat, 11 Feb 2012 23:51:38 +0000 (01:51 +0200)]
Fix seekable() in BZ2File and LZMAFile to check whether the underlying file supports seek().

12 years agoAdd section on bz2 module to whatsnew/3.3.
Nadeem Vawda [Sat, 11 Feb 2012 23:34:18 +0000 (01:34 +0200)]
Add section on bz2 module to whatsnew/3.3.

12 years agoFix typo in whatsnew/3.3.
Nadeem Vawda [Sat, 11 Feb 2012 22:30:54 +0000 (00:30 +0200)]
Fix typo in whatsnew/3.3.

12 years agoClean up GzipFile mode string handling code.
Nadeem Vawda [Sat, 11 Feb 2012 22:06:02 +0000 (00:06 +0200)]
Clean up GzipFile mode string handling code.

12 years agoMerge: #13989: Document that GzipFile does not support text mode.
Nadeem Vawda [Sat, 11 Feb 2012 21:54:51 +0000 (23:54 +0200)]
Merge: #13989: Document that GzipFile does not support text mode.

12 years agoIssue #13989: Document that GzipFile does not support text mode.
Nadeem Vawda [Sat, 11 Feb 2012 21:45:10 +0000 (23:45 +0200)]
Issue #13989: Document that GzipFile does not support text mode.

Also, give a more helpful error message when opened with an invalid mode string.

12 years agoIssue #13988: move the python bootstrap code to cElementTree.py, and remove obsolete...
Florent Xicluna [Sat, 11 Feb 2012 10:28:16 +0000 (11:28 +0100)]
Issue #13988: move the python bootstrap code to cElementTree.py, and remove obsolete code for Python 2.4 and 2.5.

12 years agofix Doc/extending/extending.rst typo
Eli Bendersky [Sat, 11 Feb 2012 08:27:31 +0000 (10:27 +0200)]
fix Doc/extending/extending.rst typo