mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
clean_title(): Remove debugging prints.
This commit is contained in:
parent
ac77b79df6
commit
eff1f7622a
1 changed files with 0 additions and 2 deletions
|
@ -86,14 +86,12 @@ def clean_title(title):
|
||||||
m = title_rx.search(title, pos)
|
m = title_rx.search(title, pos)
|
||||||
if m:
|
if m:
|
||||||
start = m.start()
|
start = m.start()
|
||||||
print "found", `title[start:m.end()]`
|
|
||||||
if title[start:start+15] != "\\textunderscore":
|
if title[start:start+15] != "\\textunderscore":
|
||||||
title = title[:start] + title[m.end():]
|
title = title[:start] + title[m.end():]
|
||||||
pos = start + 1
|
pos = start + 1
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
title = string.translate(title, title_trans, "{}")
|
title = string.translate(title, title_trans, "{}")
|
||||||
print `title`
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue