mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove outdated references to the regsub module.
This commit is contained in:
parent
a6b45cc31d
commit
57aef9cb29
3 changed files with 2 additions and 5 deletions
|
@ -177,7 +177,6 @@ class AbstractFormatter:
|
|||
def add_flowing_data(self, data):
|
||||
if not data: return
|
||||
# The following looks a bit convoluted but is a great improvement over
|
||||
# data = regsub.gsub('[' + string.whitespace + ']+', ' ', data)
|
||||
prespace = data[:1].isspace()
|
||||
postspace = data[-1:].isspace()
|
||||
data = " ".join(data.split())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue