From 1d1b5ed0db0f76dc921f52fd89dd0adfa3880489 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 21 Feb 2013 17:52:51 +0100 Subject: [PATCH] Documentation updates. --- patoolib/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patoolib/__init__.py b/patoolib/__init__.py index 32e95bb..66c6d6d 100644 --- a/patoolib/__init__.py +++ b/patoolib/__init__.py @@ -213,7 +213,6 @@ ArchivePrograms = { 'lzop': { None: ('lzop',), }, - # XXX Python 3.3 has native lzma module - use that after porting to 3.3 'lzma': { 'extract': ('lzma',) + py_lzma, 'list': ('py_echo',), @@ -558,10 +557,11 @@ def _diff_archives (archive1, archive2, **kwargs): """Show differences between two archives.""" if util.is_same_file(archive1, archive2): msg = "no differences found: archive `%s' and `%s' are the same files" - print(msg % (archive1, archive2)) + util.log_info(msg % (archive1, archive2)) return 0 diff = util.find_program("diff") if not diff: + # XXX more helpful error message msg = "The diff(1) program is required for showing archive differences, please install it." raise util.PatoolError(msg) tmpdir1 = util.tmpdir()