MCPcopy Index your code
hub / github.com/python/cpython / setcookedpat

Method setcookedpat

Lib/idlelib/searchengine.py:60–65  ·  view source on GitHub ↗

Set pattern after escaping if re.

(self, pat)

Source from the content-addressed store, hash-verified

58 # Higher level access methods
59
60 def setcookedpat(self, pat):
61 "Set pattern after escaping if re."
62 # called only in search.py: 66
63 if self.isre():
64 pat = re.escape(pat)
65 self.setpat(pat)
66
67 def getcookedpat(self):
68 pat = self.getpat()

Callers 3

find_selectionMethod · 0.80
test_replace_regexMethod · 0.80
test_setcookedpatMethod · 0.80

Calls 3

isreMethod · 0.95
setpatMethod · 0.95
escapeMethod · 0.80

Tested by 2

test_replace_regexMethod · 0.64
test_setcookedpatMethod · 0.64