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

Method vcardEscape

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

Source from the content-addressed store, hash-verified

2110 self.vcard = None
2111
2112 def vcardEscape(self, s):
2113 if isinstance(s, basestring):
2114 s = s.replace(',', '\\,').replace(';', '\\;').replace('\n', '\\n')
2115 return s
2116
2117 def vcardFold(self, s):
2118 s = re.sub(';+$', '', s)

Callers 1

getPropertyValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected