From b10285d11b2002809b582a2511b6681a31f3ba46 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 14 May 2019 16:34:42 -0700 Subject: [PATCH] Fix warnings --- setup.cfg | 2 ++ src/ocrmypdf/_pipeline.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 73ea8553..b1b0a740 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,6 +13,8 @@ norecursedirs = lib .pc .git output cache resources testpaths = tests filterwarnings = ignore:.*XMLParser.*:DeprecationWarning +markers = + slow [isort] multi_line_output=3 diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py index 71d5870e..5de49e33 100644 --- a/src/ocrmypdf/_pipeline.py +++ b/src/ocrmypdf/_pipeline.py @@ -721,7 +721,7 @@ def metadata_fixup(working_file, context): not_copied = set(meta_original.keys()) - set(meta.keys()) if not_copied: if options.output_type.startswith('pdfa'): - context.log.warn( + context.log.warning( "Some input metadata could not be copied because it is not " "permitted in PDF/A. You may wish to examine the output " "PDF's XMP metadata."