shutil.unregister_unpack_format
Prev: shutil.unregister_archive_format | Up: shutil | Next: shutil.which
Rel: shutil.chown, shutil.copy, shutil.copy2, shutil.copyfile
Ref: docs.python.org — shutil.unregister_unpack_format
Tags: #public #python3 #stdlib #shutil
Import
import shutil
from shutil import unregister_unpack_format
Signature & Overview
shutil.unregister_unpack_format(name)
Removes the pack format from the registry.
Usage
import shutil
shutil.register_unpack_format("demo_fmt", [".demounp"], lambda f, d, **kw: None)
shutil.unregister_unpack_format("demo_fmt")
assert all(name != "demo_fmt" for name, _, _ in shutil.get_unpack_formats())
Gotchas
- Pairs with
register_unpack_format(): Removes a custom unpacker from the process-global registry intry ... finally:cleanup blocks.
REPL Inspect
from shutil import unregister_unpack_format
help(unregister_unpack_format)
Linked from
Related notes
- tuts/python3/stdlib_module/shutil/unregister_archive_format Linked here; links to this page; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/which Linked here; links to this page; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/shutil/chown Linked here; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copy Linked here; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copy2 Linked here; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copyfile Linked here; shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copyfileobj shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copymode shared tags: #shutil, #stdlib
- tuts/python3/stdlib_module/shutil/copystat shared tags: #shutil, #stdlib