The sets module is deprecated since Python 2.6, so use the built-in

type set, available as almost drop-in replacement since Python 2.4.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-02-05 22:59:01 +00:00
parent 1aad2779e4
commit df6df99df8

View File

@ -14,7 +14,8 @@
# found in the path. The tar archive is then compressed with gzip or bzip2. # found in the path. The tar archive is then compressed with gzip or bzip2.
import os, re, string, sys import os, re, string, sys
from sets import Set if sys.version_info < (2, 4, 0):
from sets import Set as set
# Replace with the actual path to the 1.5.x or 1.6.x lyx2lyx. # Replace with the actual path to the 1.5.x or 1.6.x lyx2lyx.
# If left undefined and the LyX executable is in the path, the script will # If left undefined and the LyX executable is in the path, the script will
@ -256,7 +257,7 @@ def main(argv):
i += 1 i += 1
# Remove duplicates and sort the list # Remove duplicates and sort the list
incfiles = list(Set(incfiles)) incfiles = list(set(incfiles))
incfiles.sort() incfiles.sort()
# Build the archive command # Build the archive command