Project

General

Profile

« Previous | Next » 

Revision 892

Replaced all type(...) == str with util.is_str(...) to properly treat Unicode objects as strings

View differences:

map
20 20
import xml_func
21 21

  
22 22
def metadata_value(name):
23
    if type(name) == str and name.startswith(':'): return name[1:]
23
    if util.is_str(name) and name.startswith(':'): return name[1:]
24 24
    else: return None
25 25

  
26 26
def main_():

Also available in: Unified diff