Staging
v0.5.1
https://github.com/python/cpython
Revision 9c1696cff55375744281580438fe29d44de04397 authored by Barry Warsaw on 15 December 1998, 04:36:22 UTC, committed by Barry Warsaw on 15 December 1998, 04:36:22 UTC
string we find ourselves in, based on the passed in delimiter.

(py-compute-indentation): Fixes for indentation errors when we land
inside a triple quoted string.  For example:

def foo():
   if os.path.isfile(o_pri_mbox_file) and os.path.isfile(o_pub_mbox_file):
       print """\
I found both a private and a public mbox archive file
    private: %s
    public : %s

I won't move either file, but you should choose one and move it to

    %s

You may want to merge them manually, but be careful about exposing private
correspondences to the public.""" % (
    o_pri_mbox_file, o_pub_mbox_file, mbox_file)
*----indentation would be wrong on this line.
1 parent ef30092
History
Tip revision: 9c1696cff55375744281580438fe29d44de04397 authored by Barry Warsaw on 15 December 1998, 04:36:22 UTC
(py-goto-beginning-of-tqs): Finds the beginning of the triple quoted
Tip revision: 9c1696c
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1.3 KB
Makefile.in -rw-r--r-- 17.4 KB
README -rw-r--r-- 36.1 KB
acconfig.h -rw-r--r-- 2.9 KB
config.h.in -rw-r--r-- 10.5 KB
configure -rwxr-xr-x 120.7 KB
configure.in -rw-r--r-- 19.0 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top