Kaydet (Commit) 557ed94e authored tarafından Guido van Rossum's avatar Guido van Rossum

don't print PLAINTEXT = ...

üst cfc2f980
...@@ -2095,8 +2095,8 @@ def dumpit(buf, wm, pp): ...@@ -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): ...@@ -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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment