Changeset 122

Show
Ignore:
Timestamp:
12/19/07 10:45:27 (1 year ago)
Author:
tal
Message:
Use the built in set.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/fontMath/trunk/Lib/fontMath/mathKerning.py

    r121 r122  
    196196 
    197197    def _processMathOne(self, other, funct): 
    198         from sets import Set 
    199         comboPairs = Set(self._kerning.keys()) | Set(other._kerning.keys()) 
     198        comboPairs = set(self._kerning.keys()) | set(other._kerning.keys()) 
    200199        kerning = dict.fromkeys(comboPairs, None) 
    201200        for k in comboPairs: 
     
    209208            groups = g1 
    210209        else: 
    211             comboGroups = Set(g1.keys()) | Set(g2.keys()) 
    212             groups = dict.fromkeys(comboGroups, Set()
     210            comboGroups = set(g1.keys()) | set(g2.keys()) 
     211            groups = dict.fromkeys(comboGroups, None
    213212            for groupName in comboGroups: 
    214                 s1 = Set(g1.get(groupName, [])) 
    215                 s2 = Set(g2.get(groupName, [])) 
     213                s1 = set(g1.get(groupName, [])) 
     214                s2 = set(g2.get(groupName, [])) 
    216215                groups[groupName] = list(s1 | s2) 
    217216        ks = MathKerning(kerning, groups)