def _XMLContentFilter (self, content, was_array_typecode=None) :
      result = "" # RVO
      typecode = { float:'d', complex:'D' }
      type_content = type(content)
      if was_array_typecode != None :
          t = pretty.NumericString_(was_array_typecode, content)
      elif [float, complex] in type_content :
          t = pretty.NumericString_(typecode[type_content], content)
      elif type_content == long :
          t = repr(content)
      else : 
          t = str(content)
      for ii in xrange(0,len(t)) :
          c = t[ii]
          if not isprint(c) :
              result += "&#"+hex(ord(c))[1:]+";"
          else :
              if c in self.specialCharToEscapeSeq_ :
                  esc_seq = self.specialCharToEscapeSeq_[t[ii]]
                  result = result + esc_seq
              else :
                  result = result + t[ii]
      return result


  # Dump the start tag, with attention to formatting and options
dataset/ETHPy150Open redhat-imaging/imagefactory/imgfac/picklingtools/xmldumper.py/XMLDumper._XMLContentFilter/swapped operands of `in`