# HG changeset patch # User paugier # Date 1729775917 -7200 # Node ID ad23dc96e7d6b035d1d50e88e3f713026ab9ead0 # Parent fcc059b1eed05d953f39e9df929466ec78bedcaa setup_py: simpler silence warnings unused-import diff -r fcc059b1eed0 -r ad23dc96e7d6 setup.py --- a/setup.py Sat Nov 23 06:01:42 2024 +0100 +++ b/setup.py Thu Oct 24 15:18:37 2024 +0200 @@ -26,7 +26,7 @@ try: import sha - sha.sha # silence unused import warning + del sha # silence unused import warning except ImportError: raise SystemExit( "Couldn't import standard hashlib (incomplete Python install)." @@ -35,17 +35,16 @@ try: import zlib - zlib.compressobj # silence unused import warning + del zlib # silence unused import warning except ImportError: raise SystemExit( "Couldn't import standard zlib (incomplete Python install)." ) - try: import bz2 - bz2.BZ2Compressor # silence unused import warning + del bz2 # silence unused import warning except ImportError: raise SystemExit( "Couldn't import standard bz2 (incomplete Python install)."