mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
don't print PLAINTEXT = ...
This commit is contained in:
parent
cfc2f980f6
commit
557ed94ebb
@ -2095,8 +2095,8 @@ def dumpit(buf, wm, pp):
|
|||||||
|
|
||||||
elif ch.chtype == chunk_type(COMMENT):
|
elif ch.chtype == chunk_type(COMMENT):
|
||||||
## print 'COMMENT: previous chunk =', pp[i-2]
|
## print 'COMMENT: previous chunk =', pp[i-2]
|
||||||
if pp[i-2].chtype == chunk_type(PLAIN):
|
## if pp[i-2].chtype == chunk_type(PLAIN):
|
||||||
print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
|
## print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
|
||||||
if s(buf, ch.data) and \
|
if s(buf, ch.data) and \
|
||||||
regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
|
regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
|
||||||
if i >= 2 and pp[i-2].chtype not in \
|
if i >= 2 and pp[i-2].chtype not in \
|
||||||
|
@ -2095,8 +2095,8 @@ def dumpit(buf, wm, pp):
|
|||||||
|
|
||||||
elif ch.chtype == chunk_type(COMMENT):
|
elif ch.chtype == chunk_type(COMMENT):
|
||||||
## print 'COMMENT: previous chunk =', pp[i-2]
|
## print 'COMMENT: previous chunk =', pp[i-2]
|
||||||
if pp[i-2].chtype == chunk_type(PLAIN):
|
## if pp[i-2].chtype == chunk_type(PLAIN):
|
||||||
print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
|
## print 'PLAINTEXT =', `s(buf, pp[i-2].data)`
|
||||||
if s(buf, ch.data) and \
|
if s(buf, ch.data) and \
|
||||||
regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
|
regex.match('^[ \t]*$', s(buf, ch.data)) < 0:
|
||||||
if i >= 2 and pp[i-2].chtype not in \
|
if i >= 2 and pp[i-2].chtype not in \
|
||||||
|
Loading…
Reference in New Issue
Block a user