Commit 7b7acd1d authored by Raymond Hettinger's avatar Raymond Hettinger

Use set() instead of sets.Set()

parent d7c71159
......@@ -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'({)|(})')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment