Anonymous avatar Anonymous committed a922f56

Fix a couple double backslashes and port rev. 56885.

Comments (0)

Files changed (12)

Doc-26/c-api/utilities.rst

 guarantee consistent behavior in corner cases, which the Standard C functions do
 not.
 
-The wrappers ensure that *str*[*size*-1] is always ``'\\0'`` upon return. They
-never write more than *size* bytes (including the trailing ``'\\0'`` into str.
+The wrappers ensure that *str*[*size*-1] is always ``'\0'`` upon return. They
+never write more than *size* bytes (including the trailing ``'\0'`` into str.
 Both functions require that ``str != NULL``, ``size > 0`` and ``format !=
 NULL``.
 

Doc-26/howto/sockets.rst

    	while totalsent < MSGLEN:
    	    sent = self.sock.send(msg[totalsent:])
    	    if sent == 0:
-   		raise RuntimeError, \\
+   		raise RuntimeError, \
    		    "socket connection broken"
    	    totalsent = totalsent + sent
 
    	while len(msg) < MSGLEN:
    	    chunk = self.sock.recv(MSGLEN-len(msg))
    	    if chunk == '':
-   		raise RuntimeError, \\
+   		raise RuntimeError, \
    		    "socket connection broken"
    	    msg = msg + chunk
    	return msg
 it's close enough to the C version that if you understand ``select`` in Python,
 you'll have little trouble with it in C. ::
 
-   ready_to_read, ready_to_write, in_error = \\
+   ready_to_read, ready_to_write, in_error = \
                   select.select(
                      potential_readers, 
                      potential_writers, 

Doc-26/library/mailbox.rst

 
 Babyl is a single-file mailbox format used by the Rmail mail user agent included
 with Emacs. The beginning of a message is indicated by a line containing the two
-characters Control-Underscore (``'\\037'``) and Control-L (``'\\014'``). The end
+characters Control-Underscore (``'\037'``) and Control-L (``'\014'``). The end
 of a message is indicated by the start of the next message or, in the case of
-the last message, a line containing a Control-Underscore (``'\\037'``)
+the last message, a line containing a Control-Underscore (``'\037'``)
 character.
 
 Messages in a Babyl mailbox have two sets of headers, original headers and
 MMDF is a single-file mailbox format invented for the Multichannel Memorandum
 Distribution Facility, a mail transfer agent. Each message is in the same form
 as an mbox message but is bracketed before and after by lines containing four
-Control-A (``'\\001'``) characters. As with the mbox format, the beginning of
+Control-A (``'\001'``) characters. As with the mbox format, the beginning of
 each message is indicated by a line whose first five characters are "From ", but
 additional occurrences of "From " are not transformed to ">From " when storing
 messages because the extra message separator lines prevent mistaking such

Doc-26/library/os.path.rst

    directory separator (``os.sep``) inserted between components, unless *path2* is
    empty.  Note that on Windows, since there is a current directory for each drive,
    :func:`os.path.join("c:", "foo")` represents a path relative to the current
-   directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`.
+   directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
 
 
 .. function:: normcase(path)

Doc-26/library/re.rst

    Matches the end of the string or just before the newline at the end of the
    string, and in :const:`MULTILINE` mode also matches before a newline.  ``foo``
    matches both 'foo' and 'foobar', while the regular expression ``foo$`` matches
-   only 'foo'.  More interestingly, searching for ``foo.$`` in 'foo1\\nfoo2\\n'
+   only 'foo'.  More interestingly, searching for ``foo.$`` in ``'foo1\nfoo2\n'``
    matches 'foo2' normally, but 'foo1' in :const:`MULTILINE` mode.
 
 ``'*'``

Doc-26/library/shlex.rst

 .. attribute:: shlex.escape
 
    Characters that will be considered as escape. This will be only used in POSIX
-   mode, and includes just ``'\\'`` by default.
+   mode, and includes just ``'\'`` by default.
 
    .. versionadded:: 2.3
 
 * Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is
   parsed as the single word ``DoNotSeparate``);
 
-* Non-quoted escape characters (e.g. ``'\\'``) preserve the literal value of the
+* Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the
   next character that follows;
 
 * Enclosing characters in quotes which are not part of :attr:`escapedquotes`

Doc-3k/c-api/utilities.rst

 guarantee consistent behavior in corner cases, which the Standard C functions do
 not.
 
-The wrappers ensure that *str*[*size*-1] is always ``'\\0'`` upon return. They
-never write more than *size* bytes (including the trailing ``'\\0'`` into str.
+The wrappers ensure that *str*[*size*-1] is always ``'\0'`` upon return. They
+never write more than *size* bytes (including the trailing ``'\0'``) into str.
 Both functions require that ``str != NULL``, ``size > 0`` and ``format !=
 NULL``.
 

Doc-3k/howto/sockets.rst

    	while totalsent < MSGLEN:
    	    sent = self.sock.send(msg[totalsent:])
    	    if sent == 0:
-   		raise RuntimeError, \\
+   		raise RuntimeError, \
    		    "socket connection broken"
    	    totalsent = totalsent + sent
 
    	while len(msg) < MSGLEN:
    	    chunk = self.sock.recv(MSGLEN-len(msg))
    	    if chunk == '':
-   		raise RuntimeError, \\
+   		raise RuntimeError, \
    		    "socket connection broken"
    	    msg = msg + chunk
    	return msg
 it's close enough to the C version that if you understand ``select`` in Python,
 you'll have little trouble with it in C. ::
 
-   ready_to_read, ready_to_write, in_error = \\
+   ready_to_read, ready_to_write, in_error = \
                   select.select(
                      potential_readers, 
                      potential_writers, 

Doc-3k/library/mailbox.rst

 
 Babyl is a single-file mailbox format used by the Rmail mail user agent included
 with Emacs. The beginning of a message is indicated by a line containing the two
-characters Control-Underscore (``'\\037'``) and Control-L (``'\\014'``). The end
+characters Control-Underscore (``'\037'``) and Control-L (``'\014'``). The end
 of a message is indicated by the start of the next message or, in the case of
-the last message, a line containing a Control-Underscore (``'\\037'``)
+the last message, a line containing a Control-Underscore (``'\037'``)
 character.
 
 Messages in a Babyl mailbox have two sets of headers, original headers and
 MMDF is a single-file mailbox format invented for the Multichannel Memorandum
 Distribution Facility, a mail transfer agent. Each message is in the same form
 as an mbox message but is bracketed before and after by lines containing four
-Control-A (``'\\001'``) characters. As with the mbox format, the beginning of
+Control-A (``'\001'``) characters. As with the mbox format, the beginning of
 each message is indicated by a line whose first five characters are "From ", but
 additional occurrences of "From " are not transformed to ">From " when storing
 messages because the extra message separator lines prevent mistaking such

Doc-3k/library/os.path.rst

    directory separator (``os.sep``) inserted between components, unless *path2* is
    empty.  Note that on Windows, since there is a current directory for each drive,
    :func:`os.path.join("c:", "foo")` represents a path relative to the current
-   directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`.
+   directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
 
 
 .. function:: normcase(path)

Doc-3k/library/re.rst

    Matches the end of the string or just before the newline at the end of the
    string, and in :const:`MULTILINE` mode also matches before a newline.  ``foo``
    matches both 'foo' and 'foobar', while the regular expression ``foo$`` matches
-   only 'foo'.  More interestingly, searching for ``foo.$`` in 'foo1\\nfoo2\\n'
+   only 'foo'.  More interestingly, searching for ``foo.$`` in ``'foo1\nfoo2\n'``
    matches 'foo2' normally, but 'foo1' in :const:`MULTILINE` mode.
 
 ``'*'``

Doc-3k/library/shlex.rst

 .. attribute:: shlex.escape
 
    Characters that will be considered as escape. This will be only used in POSIX
-   mode, and includes just ``'\\'`` by default.
+   mode, and includes just ``'\'`` by default.
 
    .. versionadded:: 2.3
 
 * Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is
   parsed as the single word ``DoNotSeparate``);
 
-* Non-quoted escape characters (e.g. ``'\\'``) preserve the literal value of the
+* Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the
   next character that follows;
 
 * Enclosing characters in quotes which are not part of :attr:`escapedquotes`
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.