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

Function _format

pattern/web/__init__.py:191–198  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

189 Returns a dictionary of (name, value)-items from a URL query string.
190 """
191 def _format(s):
192 if s == "" or s == "None":
193 return None
194 if s.lstrip("-").isdigit():
195 return int(s)
196 try: return float(s)
197 except:
198 return s
199 if query:
200 query = query.lstrip("?").split("&")
201 query = ((kv.split("=") + [None])[:2] for kv in query)

Callers 1

urldecodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…