我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用werkzeug.contrib.sessions.ModificationTrackingDict.__init__()。
def __init__(self, data=None, secret_key=None, new=True): ModificationTrackingDict.__init__(self, data or ()) # explicitly convert it into a bytestring because python 2.6 # no longer performs an implicit string conversion on hmac if secret_key is not None: secret_key = bytes(secret_key) self.secret_key = secret_key self.new = new