Skip to content

Commit

Permalink
src/: updated version number and date, should have been done for rele…
Browse files Browse the repository at this point in the history
…ase of 1.24.6.
  • Loading branch information
julian-smith-artifex-com committed Jun 25, 2024
1 parent 99b414a commit ef99b8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def _int_rc(text):

# Basic version information.
#
pymupdf_version = "1.24.5"
pymupdf_version = "1.24.6"
mupdf_version = mupdf.FZ_VERSION
pymupdf_date = "2024-05-30 00:00:01"
pymupdf_date = "2024-06-25 00:00:01"

# Versions as tuples; useful when comparing versions.
#
Expand Down Expand Up @@ -21919,15 +21919,14 @@ def _alias(class_, new_name, legacy_name=None):
assert not getattr( class_, legacy_name, None), f'class {class_} already has {legacy_name}'
if callable( new_object):
def deprecated_function( *args, **kwargs):
if not VersionBind.startswith('1.18'):
warnings.warn(
f'"{legacy_name}" removed from {class_} after v1.19.0 - use "{new_name}".',
category=FitzDeprecation,
)
warnings.warn(
f'"{legacy_name=}" removed from {class_} after v1.19.0 - use "{new_name}".',
category=FitzDeprecation,
)
return new_object( *args, **kwargs)
setattr( class_, legacy_name, deprecated_function)
deprecated_function.__doc__ = (
f'*** Deprecated and removed in version following 1.19.0 - use "{new_name}". ***\n'
f'*** Deprecated and removed in version after v1.19.0 - use "{new_name}". ***\n'
f'{new_object.__doc__}'
)
else:
Expand Down
2 changes: 1 addition & 1 deletion src/extra.i
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ static mupdf::FzLink Link_next(mupdf::FzLink& this_link)


//-----------------------------------------------------------------------------
// create PDF object from given string (new in v1.14.0: MuPDF dropped it)
// create PDF object from given string
//-----------------------------------------------------------------------------
static pdf_obj *lll_JM_pdf_obj_from_str(fz_context *ctx, pdf_document *doc, const char *src)
{
Expand Down

0 comments on commit ef99b8a

Please sign in to comment.