• Barry Warsaw's avatar
    (py-compute-indentation): In the most common case, where indentation · c210e699
    Barry Warsaw yazdı
    is based on the line above, watch out for landing inside a triple
    quoted string.  In this case, use iterative search +
    parse-partial-sexp backwards to find the beginning of the string.
    
    Note this does affect performance, but very little in the common cases
    (I hope).  It could be made *much* faster by adding Emacs and XEmacs
    dependent code -- different code naturally.  :-(
    
    Fixes the following reported bug:
    
    if len(sys.argv) >= 6:
        # More lines here
        fptr = open('/etc/hosts', 'w')
        fptr.write("""# /etc/hosts -- autocreated by /etc/ppp/ip-up
    #
    # Address from pppd
    %-15s	%s
    
    # For loopbacking
    127.0.0.1	localhost
    
    255.255.255.255	broadcast
    """ % (ipaddr, ipname) )
    
    os.chmod('/etc/hosts', 0644)
    c210e699
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...