diff options
author | Raymond Hettinger <python@rcn.com> | 2004-07-12 13:29:10 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-07-12 13:29:10 (GMT) |
commit | 7b7acd1de5f4c6bca47b33be3c54186562ce20fa (patch) | |
tree | cf462836c1099add1262969e15cda15aaea6e68c /Tools | |
parent | d7c711592655a3f17355d944a813fe8f8cdde59f (diff) | |
download | cpython-7b7acd1de5f4c6bca47b33be3c54186562ce20fa.zip cpython-7b7acd1de5f4c6bca47b33be3c54186562ce20fa.tar.gz cpython-7b7acd1de5f4c6bca47b33be3c54186562ce20fa.tar.bz2 |
Use set() instead of sets.Set()
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/texcheck.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/texcheck.py b/Tools/scripts/texcheck.py index 3e056da..08692b3 100644 --- a/Tools/scripts/texcheck.py +++ b/Tools/scripts/texcheck.py @@ -23,7 +23,6 @@ Options: """ import re -import sets import sys import getopt from itertools import izip, count, islice @@ -87,7 +86,7 @@ def checkit(source, opts, morecmds=[]): texcmd = re.compile(r'\\[A-Za-z]+') falsetexcmd = re.compile(r'\/([A-Za-z]+)') # Mismarked with forward slash - validcmds = sets.Set(cmdstr.split()) + validcmds = set(cmdstr.split()) for cmd in morecmds: validcmds.add('\\' + cmd) @@ -95,7 +94,7 @@ def checkit(source, opts, morecmds=[]): pairmap = {']':'[(', ')':'(['} # Munged openers else: pairmap = {']':'[', ')':'('} # Normal opener for a given closer - openpunct = sets.Set('([') # Set of valid openers + openpunct = set('([') # Set of valid openers delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])') braces = re.compile(r'({)|(})') |