mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
give in to tab police
This commit is contained in:
parent
3db0e3713c
commit
ed5b3d8b3c
6 changed files with 440 additions and 435 deletions
|
@ -60,15 +60,18 @@ def linknames(old, new, link):
|
|||
linkname = os.path.join(link, name)
|
||||
newname = os.path.join(new, name)
|
||||
if debug > 1: print oldname, newname, linkname
|
||||
if os.path.isdir(oldname) and not os.path.islink(oldname):
|
||||
if os.path.isdir(oldname) and \
|
||||
not os.path.islink(oldname):
|
||||
try:
|
||||
os.mkdir(newname, 0777)
|
||||
ok = 1
|
||||
except:
|
||||
print newname + ': warning: cannot mkdir:', msg
|
||||
print newname + \
|
||||
': warning: cannot mkdir:', msg
|
||||
ok = 0
|
||||
if ok:
|
||||
linkname = os.path.join(os.pardir, linkname)
|
||||
linkname = os.path.join(os.pardir,
|
||||
linkname)
|
||||
linknames(oldname, newname, linkname)
|
||||
else:
|
||||
os.symlink(linkname, newname)
|
||||
|
|
|
@ -48,7 +48,9 @@ def emparse_sendmail(fp, sub):
|
|||
((line[0] == '-----' and line[1] == 'Transcript') or
|
||||
(line[0] == '---' and line[1] == 'The' and
|
||||
line[2] == 'transcript') or
|
||||
(line[0] == 'While' and line[1] == 'talking' and line[2] == 'to')):
|
||||
(line[0] == 'While' and
|
||||
line[1] == 'talking' and
|
||||
line[2] == 'to')):
|
||||
# Yes, found it!
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue