MCPcopy Index your code
hub / github.com/pyload/pyload / vcardEscape

Method vcardEscape

module/lib/feedparser.py:2026–2029  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

2024 self.vcard = None
2025
2026 def vcardEscape(self, s):
2027 if type(s) in (type(''), type(u'')):
2028 s = s.replace(',', '\\,').replace(';', '\\;').replace('\n', '\\n')
2029 return s
2030
2031 def vcardFold(self, s):
2032 s = re.sub(';+$', '', s)

Callers 1

getPropertyValueMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected