Skip to content

Commit 9f4191e

Browse files
committed
Move pyvips.shutdown() to base.py
1 parent eae59e6 commit 9f4191e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pyvips/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def leak_set(leak):
1515
return vips_lib.vips_leak_set(leak)
1616

1717

18+
def shutdown():
19+
"""Shut libvips down."""
20+
vips_lib.vips_shutdown()
21+
22+
1823
def version(flag):
1924
"""Get the major, minor or micro version number of the libvips library.
2025
@@ -152,6 +157,7 @@ def flags_dict(gtype):
152157

153158
__all__ = [
154159
'leak_set',
160+
'shutdown',
155161
'version',
156162
'at_least_libvips',
157163
'type_find',

pyvips/voperation.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,6 @@ def add_name(gtype, a, b):
540540
print(' ' + docstr)
541541

542542

543-
def shutdown():
544-
"""Shut libvips down."""
545-
vips_lib.vips_shutdown()
546-
547-
548543
def cache_set_max(mx):
549544
"""Set the maximum number of operations libvips will cache."""
550545
vips_lib.vips_cache_set_max(mx)
@@ -598,7 +593,7 @@ def operation_block_set(name, state):
598593

599594

600595
__all__ = [
601-
'Introspect', 'Operation', 'shutdown',
596+
'Introspect', 'Operation',
602597
'cache_set_max', 'cache_set_max_mem', 'cache_set_max_files',
603598
'cache_set_trace',
604599
'cache_get_max', 'cache_get_max_mem', 'cache_get_max_files',

0 commit comments

Comments
 (0)