Changeset 2980:9c8572b2440a in livinglogic.python.xist for src/ll/xist/scripts/xml2xsc.py

Show
Ignore:
Timestamp:
09/25/07 12:50:17 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
newparser
Message:

Rename variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/scripts/xml2xsc.py

    r2979 r2980  
    3636 
    3737def etree2xnd(sims, node): 
    38     x = xnd.Module() 
     38    mod = xnd.Module() 
    3939    elements = {} # maps (name, xmlns) to (xnd.Element, content set, attrname->xnd.Attr map) 
    4040    procinsts = {} # maps name to xnd.ProcInst 
     
    4949                xndnode = xnd.Element(name, xmlns=xmlns) 
    5050                entry = elements[(name, xmlns)] = (xndnode, set(), {}) 
    51                 x(xndnode) 
     51                mod(xndnode) 
    5252            else: 
    5353                xndnode = entry[0] 
     
    101101    else: 
    102102        raise ValueError("unknown sims mode %r" % sims) 
    103     return x 
     103    return mod 
    104104 
    105105