On this page
  1. shutil.unregister_unpack_format
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from shutil import unregister_unpack_format
help(unregister_unpack_format)

Linked from

Related notes