MCPcopy Index your code
hub / github.com/python/cpython / clone

Method clone

Lib/email/generator.py:123–128  ·  view source on GitHub ↗

Clone this generator with the exact same options.

(self, fp)

Source from the content-addressed store, hash-verified

121 msg.policy = old_msg_policy
122
123 def clone(self, fp):
124 """Clone this generator with the exact same options."""
125 return self.__class__(fp,
126 self._mangle_from_,
127 None, # Use policy setting, which we've adjusted
128 policy=self.policy)
129
130 #
131 # Protected interface - undocumented ;/

Calls 1

__class__Method · 0.45