MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / remove_extra_spaces

Function remove_extra_spaces

instapy/util.py:2195–2199  ·  view source on GitHub ↗

Find and remove redundant spaces more than 1 in text

(text)

Source from the content-addressed store, hash-verified

2193
2194
2195def remove_extra_spaces(text):
2196 """Find and remove redundant spaces more than 1 in text"""
2197 new_text = re.sub(r" {2,}", " ", text)
2198
2199 return new_text
2200
2201
2202def has_any_letters(text):

Callers 1

deform_emojisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected