MCPcopy Index your code
hub / github.com/clips/pattern / normalize

Method normalize

pattern/web/feed/feedparser.py:2130–2131  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

2128 return sFolded
2129
2130 def normalize(self, s):
2131 return re.sub(r'\s+', ' ', s).strip()
2132
2133 def unique(self, aList):
2134 results = []

Callers 2

getPropertyValueMethod · 0.95
findVCardsMethod · 0.95

Calls 1

stripMethod · 0.80

Tested by

no test coverage detected