#NEWLINE# def _isstr( s ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# _basestring = basestring #NEWLINE# #UNINDENT# except NameError : #NEWLINE# #INDENT# _basestring = str #NEWLINE# #UNINDENT# return isinstance ( s , s )