# HG changeset patch # User Brett Smith # Date 1224470879 14400 # Node ID 6cdbdffa2e2e66675fb5064c7c70e1b1b4b6f88c # Parent 6c20788653a8e2fbd15d438b6dd2898f0d242c9f Avoid DeprecationWarning under Python 2.6. Part of the 6.3 release. diff -r 6c20788653a8 -r 6cdbdffa2e2e NEWS --- a/NEWS Sun Oct 19 22:42:20 2008 -0400 +++ b/NEWS Sun Oct 19 22:47:59 2008 -0400 @@ -15,6 +15,10 @@ * Previous versions of dtrx would fail to extract certain archive types with the ``-v`` option specified. This has been fixed. + * dtrx 6.3 no longer imports the sets module unless it's running under a + very old version of Python, to avoid deprecation warnings under Python + 2.6. + Version 6.2 ----------- diff -r 6c20788653a8 -r 6cdbdffa2e2e scripts/dtrx --- a/scripts/dtrx Sun Oct 19 22:42:20 2008 -0400 +++ b/scripts/dtrx Sun Oct 19 22:47:59 2008 -0400 @@ -35,7 +35,10 @@ import textwrap import traceback -from sets import Set as set +try: + set +except NameError: + from sets import Set as set VERSION = "6.3" VERSION_BANNER = """dtrx version %s