/external/python/cpython3/Modules/clinic/ |
D | _pickle.c.h | 90 PyObject *protocol, int fix_imports); 100 int fix_imports = 1; in _pickle_Pickler___init__() local 103 &file, &protocol, &fix_imports)) { in _pickle_Pickler___init__() 106 … return_value = _pickle_Pickler___init___impl((PicklerObject *)self, file, protocol, fix_imports); in _pickle_Pickler___init__() 282 int fix_imports, const char *encoding, 292 int fix_imports = 1; in _pickle_Unpickler___init__() local 297 &file, &fix_imports, &encoding, &errors)) { in _pickle_Unpickler___init__() 300 …return_value = _pickle_Unpickler___init___impl((UnpicklerObject *)self, file, fix_imports, encodin… in _pickle_Unpickler___init__() 391 PyObject *protocol, int fix_imports); 402 int fix_imports = 1; in _pickle_dump() local [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 | 374 def __init__(self, file, protocol=None, *, fix_imports=True): argument 414 self.fix_imports = fix_imports and protocol < 3 989 if self.fix_imports: 1023 def __init__(self, file, *, fix_imports=True, argument 1058 self.fix_imports = fix_imports 1418 if self.proto < 3 and self.fix_imports: 1581 def _dump(obj, file, protocol=None, *, fix_imports=True): argument 1582 _Pickler(file, protocol, fix_imports=fix_imports).dump(obj) 1584 def _dumps(obj, protocol=None, *, fix_imports=True): argument 1586 _Pickler(f, protocol, fix_imports=fix_imports).dump(obj) [all …]
|
/external/python/cpython3/Doc/library/ |
D | pickle.rst | 190 .. function:: dump(obj, file, protocol=None, \*, fix_imports=True) 205 If *fix_imports* is true and *protocol* is less than 3, pickle will try to 209 .. function:: dumps(obj, protocol=None, \*, fix_imports=True) 214 Arguments *protocol* and *fix_imports* have the same meaning as in 217 .. function:: load(file, \*, fix_imports=True, encoding="ASCII", errors="strict") 233 Optional keyword arguments are *fix_imports*, *encoding* and *errors*, 235 by Python 2. If *fix_imports* is true, pickle will try to map the old 244 .. function:: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict") 253 Optional keyword arguments are *fix_imports*, *encoding* and *errors*, 255 by Python 2. If *fix_imports* is true, pickle will try to map the old [all …]
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 635 int fix_imports; /* Indicate whether Pickler should fix member 676 int fix_imports; /* Indicate whether Unpickler should fix member 1104 self->fix_imports = 0; in _Pickler_New() 1121 _Pickler_SetProtocol(PicklerObject *self, PyObject *protocol, int fix_imports) in _Pickler_SetProtocol() argument 1143 self->fix_imports = fix_imports && proto < 3; in _Pickler_SetProtocol() 1482 self->fix_imports = 0; in _Unpickler_New() 3226 fix_imports(PyObject **module_name, PyObject **global_name) in fix_imports() function 3473 if (self->proto < 3 && self->fix_imports) { in save_global() 3474 if (fix_imports(&module_name, &global_name) < 0) { in save_global() 4335 PyObject *protocol, int fix_imports) in _pickle_Pickler___init___impl() argument [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.
|