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

Method querystring

pattern/web/__init__.py:331–337  ·  view source on GitHub ↗

Yields the URL querystring: "www.example.com?page=1" => "page=1"

(self)

Source from the content-addressed store, hash-verified

329
330 @property
331 def querystring(self):
332 """ Yields the URL querystring: "www.example.com?page=1" => "page=1"
333 """
334 s = self.parts[QUERY].items()
335 s = dict((bytestring(k), bytestring(v if v is not None else "")) for k, v in s)
336 s = urllib.urlencode(s)
337 return s
338
339 def __getattr__(self, k):
340 if k in self.__dict__ : return self.__dict__[k]

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected