MCPcopy Index your code
hub / github.com/RustPython/RustPython / _quote

Method _quote

Lib/imaplib.py:1362–1367  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

1360
1361
1362 def _quote(self, arg):
1363
1364 arg = arg.replace('\\', '\\\\')
1365 arg = arg.replace('"', '\\"')
1366
1367 return '"' + arg + '"'
1368
1369
1370 def _simple_command(self, name, *args):

Callers 1

loginMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected