#NEWLINE# def readString( self , st ) : #NEWLINE# #INDENT# 'Parse a WFS capabilities document, returning an\n        instance of WFSCapabilitiesInfoset\n\n        string should be an XML capabilities document\n        ' #NEWLINE# if ( ( not isinstance ( st , str ) ) and ( not isinstance ( st , bytes ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'String must be of type string or bytes, not %s' % type ( self ) ) ) #NEWLINE# #UNINDENT# return etree . fromstring ( st )