Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
urllib.parse.Quoter Class Reference
Inheritance diagram for urllib.parse.Quoter:
Inheritance graph
Collaboration diagram for urllib.parse.Quoter:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __repr__
def __missing__

Public Attributes


Detailed Description

A mapping from bytes (in range(0,256)) to strings.

String values are percent-encoded byte values, unless the key < 128, and
in the "safe" set (either the specified safe set, or default set).

Definition at line 628 of file

Constructor & Destructor Documentation

def urllib.parse.Quoter.__init__ (   self,
safe: bytes object.

Definition at line 636 of file

00637     def __init__(self, safe):
00638         """safe: bytes object."""
00639 = _ALWAYS_SAFE.union(safe)

Here is the caller graph for this function:

Member Function Documentation

def urllib.parse.Quoter.__missing__ (   self,

Definition at line 644 of file

00645     def __missing__(self, b):
00646         # Handle a cache miss. Store quoted string in cache and return.
00647         res = chr(b) if b in else '%{:02X}'.format(b)
00648         self[b] = res
00649         return res

Here is the call graph for this function:

Definition at line 640 of file

00641     def __repr__(self):
00642         # Without this, will just display as a defaultdict
00643         return "<Quoter %r>" % dict(self)

Member Data Documentation

Definition at line 638 of file

The documentation for this class was generated from the following file: