/external/python/cpython3/Modules/clinic/ |
D | _pickle.c.h | 102 PyObject *protocol, int fix_imports, 117 int fix_imports = 1; in _pickle_Pickler___init__() local 135 fix_imports = PyObject_IsTrue(fastargs[2]); in _pickle_Pickler___init__() 136 if (fix_imports < 0) { in _pickle_Pickler___init__() 145 …return_value = _pickle_Pickler___init___impl((PicklerObject *)self, file, protocol, fix_imports, b… in _pickle_Pickler___init__() 322 int fix_imports, const char *encoding, 336 int fix_imports = 1; in _pickle_Unpickler___init__() local 350 fix_imports = PyObject_IsTrue(fastargs[1]); in _pickle_Unpickler___init__() 351 if (fix_imports < 0) { in _pickle_Unpickler___init__() 396 …return_value = _pickle_Unpickler___init___impl((UnpicklerObject *)self, file, fix_imports, encodin… in _pickle_Unpickler___init__() [all …]
|
/external/python/cpython3/Lib/lib2to3/fixes/ |
D | fix_imports2.py | 3 from . import fix_imports 12 class FixImports2(fix_imports.FixImports):
|
D | fix_urllib.py | 8 from lib2to3.fixes.fix_imports import alternates, FixImports
|
/external/python/cpython2/Lib/lib2to3/fixes/ |
D | fix_imports2.py | 3 from . import fix_imports 12 class FixImports2(fix_imports.FixImports):
|
D | fix_urllib.py | 8 from lib2to3.fixes.fix_imports import alternates, FixImports
|
/external/python/cpython3/Lib/ |
D | pickle.py | 409 def __init__(self, file, protocol=None, *, fix_imports=True, argument 464 self.fix_imports = fix_imports and protocol < 3 1104 if self.fix_imports: 1138 def __init__(self, file, *, fix_imports=True, argument 1184 self.fix_imports = fix_imports 1574 if self.proto < 3 and self.fix_imports: 1749 def _dump(obj, file, protocol=None, *, fix_imports=True, buffer_callback=None): argument 1750 _Pickler(file, protocol, fix_imports=fix_imports, 1753 def _dumps(obj, protocol=None, *, fix_imports=True, buffer_callback=None): argument 1755 _Pickler(f, protocol, fix_imports=fix_imports, [all …]
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 650 int fix_imports; /* Indicate whether Pickler should fix member 694 int fix_imports; /* Indicate whether Unpickler should fix member 1123 self->fix_imports = 0; in _Pickler_New() 1143 _Pickler_SetProtocol(PicklerObject *self, PyObject *protocol, int fix_imports) in _Pickler_SetProtocol() argument 1165 self->fix_imports = fix_imports && proto < 3; in _Pickler_SetProtocol() 1614 self->fix_imports = 0; in _Unpickler_New() 3516 fix_imports(PyObject **module_name, PyObject **global_name) in fix_imports() function 3763 if (self->proto < 3 && self->fix_imports) { in save_global() 3764 if (fix_imports(&module_name, &global_name) < 0) { in save_global() 4727 PyObject *protocol, int fix_imports, in _pickle_Pickler___init___impl() argument [all …]
|
/external/python/cpython3/Doc/library/ |
D | pickle.rst | 216 .. function:: dump(obj, file, protocol=None, \*, fix_imports=True, buffer_callback=None) 222 Arguments *file*, *protocol*, *fix_imports* and *buffer_callback* have 228 .. function:: dumps(obj, protocol=None, \*, fix_imports=True, buffer_callback=None) 233 Arguments *protocol*, *fix_imports* and *buffer_callback* have the same 239 .. function:: load(file, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None) 249 Arguments *file*, *fix_imports*, *encoding*, *errors*, *strict* and *buffers* 255 .. function:: loads(data, /, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None) 264 Arguments *file*, *fix_imports*, *encoding*, *errors*, *strict* and *buffers* 299 .. class:: Pickler(file, protocol=None, \*, fix_imports=True, buffer_callback=None) 313 If *fix_imports* is true and *protocol* is less than 3, pickle will try to [all …]
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 390 remapping is turned-on by default but can be disabled with the *fix_imports* 396 >>> pickle.dumps(s, protocol=0, fix_imports=False) 551 protocol 3. Another solution is to set the *fix_imports* option to ``False``.
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_fixers.py | 1794 from ..fixes.fix_imports import MAPPING as modules 1824 from ..fixes.fix_imports import MAPPING as mapping1
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_fixers.py | 1736 from ..fixes.fix_imports import MAPPING as modules 1766 from ..fixes.fix_imports import MAPPING as mapping1
|
/external/python/cpython3/Doc/howto/ |
D | clinic.rst | 612 fix_imports: bool = True
|
/external/python/cpython3/Misc/ |
D | HISTORY | 14648 new `fix_imports` optional argument.
|