Revision 892
Added by Aaron Marcuse-Kubitza almost 13 years ago
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
Replaced all type(...) == str with util.is_str(...) to properly treat Unicode objects as strings