summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a589b6a)
Signed-off-by: Evan Broder <broder@mit.edu>
name if it's a string, or otherwise just converting it to an
integer.
"""
name if it's a string, or otherwise just converting it to an
integer.
"""
- if isinstance(ident, (str, unicode)):
+ if isinstance(ident, basestring):
return self._NameToId(ident)
else:
return int(ident)
return self._NameToId(ident)
else:
return int(ident)