MCPcopy
hub / github.com/google/python-fire / _Quote

Method _Quote

fire/trace.py:160–164  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

158 self.elements[-1].AddSeparator()
159
160 def _Quote(self, arg):
161 if arg.startswith('--') and '=' in arg:
162 prefix, value = arg.split('=', 1)
163 return shlex.quote(prefix) + '=' + shlex.quote(value)
164 return shlex.quote(arg)
165
166 def GetCommand(self, include_separators=True):
167 """Returns the command representing the trace up to this point.

Callers 1

GetCommandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected