wxPython/wxGlade-0.9.1/xml_parse.py
def _get_encoding(self, attrs):
        "Return the document encoding; attrs: Object attributes"
        encoding = attrs.get('encoding', config.default_encoding)
        if encoding:
            try:
                'a'.encode(encoding)
            except LookupError:
                self._logger.warning( _('Unknown encoding "%s", fallback to default encoding "%s"'),
                                      encoding, config.default_encoding)
                encoding = config.default_encoding
        return encoding
Return the document encoding; attrs: Object attributes
Return the document encoding; attrs: Object attributes
Return the document encoding ; attrs : Object attributes
def _get_encoding(self, attrs):
        encoding = attrs.get('encoding', config.default_encoding)
        if encoding:
            try:
                'a'.encode(encoding)
            except LookupError:
                self._logger.warning( _('Unknown encoding "%s", fallback to default encoding "%s"'),
                                      encoding, config.default_encoding)
                encoding = config.default_encoding
        return encoding
def _get_encoding ( self , attrs ) : encoding = attrs . get ( 'encoding' , config . default_encoding ) if encoding : try : 'a' . encode ( encoding ) except LookupError : self . _logger . warning ( _ ( 'Unknown encoding "%s", fallback to default encoding "%s"' ) , encoding , config . default_encoding ) encoding = config . default_encoding return encoding
Return the document encoding; attrs: Object attributes
Return the document encoding ; attrs : Object attributes
"Return the document encoding; attrs: Object attributes"
self
attrs