Changeset 3156:ba916ca5d927 in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/17/08 22:38:43 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Invert if logic.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/publishers.py

    r3155 r3156  
    187187            prefix = self._ns2prefix[xmlns] 
    188188        except KeyError: # A namespace we haven't encountered yet 
    189             if xmlns != xsc.xml_xmlns: # We don't need a namespace mapping for the xml namespace 
     189            if xmlns == xsc.xml_xmlns: # We don't need a namespace mapping for the xml namespace 
     190                prefix = "xml" 
     191            else: 
    190192                prefix = self.prefixes.get(xmlns, self.prefixdefault) 
    191193                # global attributes always require prefixed names 
     
    203205                    self._ns2prefix[xmlns] = prefix 
    204206                    self._prefix2ns[prefix] = xmlns 
    205             else: 
    206                 prefix = "xml" 
    207207        else: 
    208208            # We can't use the unprefixed names for global attributes