[Python-checkins] python/dist/src/Tools/scripts texcheck.py, 1.11, 1.12

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Jul 12 15:29:13 CEST 2004


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16059

Modified Files:
	texcheck.py 
Log Message:
Use set() instead of sets.Set()

Index: texcheck.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/texcheck.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** texcheck.py	12 Jul 2004 13:16:49 -0000	1.11
--- texcheck.py	12 Jul 2004 13:29:10 -0000	1.12
***************
*** 24,28 ****
  
  import re
- import sets
  import sys
  import getopt
--- 24,27 ----
***************
*** 88,92 ****
      falsetexcmd = re.compile(r'\/([A-Za-z]+)') # Mismarked with forward slash
  
!     validcmds = sets.Set(cmdstr.split())
      for cmd in morecmds:
          validcmds.add('\\' + cmd)
--- 87,91 ----
      falsetexcmd = re.compile(r'\/([A-Za-z]+)') # Mismarked with forward slash
  
!     validcmds = set(cmdstr.split())
      for cmd in morecmds:
          validcmds.add('\\' + cmd)
***************
*** 96,100 ****
      else:
          pairmap = {']':'[', ')':'('}        # Normal opener for a given closer
!     openpunct = sets.Set('([')              # Set of valid openers
  
      delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])')
--- 95,99 ----
      else:
          pairmap = {']':'[', ')':'('}        # Normal opener for a given closer
!     openpunct = set('([')                   # Set of valid openers
  
      delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])')



More information about the Python-checkins mailing list