From fe3bca3a88025fbc5ffff8a94299c3320ad49790 Mon Sep 17 00:00:00 2001 From: Marc Joliet Date: Tue, 5 Nov 2013 16:30:51 +0100 Subject: [PATCH] Prefer standard library lzma module if available Prefer the standard library lzma module if available. This change prevents using the backports-lzma when it is installed for a version of Python that already has the lzma module in its standard library. --- share/tools/create_manpage_completions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index fb7c770fd..7b1879dd0 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -23,9 +23,9 @@ from deroff import Deroffer lzma_available = True try: try: - import backports.lzma as lzma - except ImportError: import lzma + except ImportError: + from backports import lzma except ImportError: lzma_available = False