MCPcopy
hub / github.com/codelucas/newspaper / replaceAll

Method replaceAll

newspaper/utils.py:107–114  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

105 return self.create(pattern, replaceWith)
106
107 def replaceAll(self, string):
108 if not string:
109 return ''
110
111 mutatedString = string
112 for rp in self.replacements:
113 mutatedString = rp.replaceAll(mutatedString)
114 return mutatedString
115
116
117class TimeoutError(Exception):

Callers 3

get_titleMethod · 0.45
split_titleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected