How to use the webencodings.VERSION function in webencodings

To help you get started, we’ve selected a few webencodings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JimmXinu / FanFicFare / webservice / main.py View on Github external
logging.info("Recent fetched %d downloads for user %s."%(len(fics),user.nickname()))

        try:
            import bs4
            logging.debug( "BS4 version: %s"%bs4.__version__)
            import html5lib
            logging.debug( "html5lib version: %s"%html5lib.__version__)
            import html2text
            logging.debug( "html2text version:")
            logging.debug( html2text.__version__)
            import chardet
            logging.debug( "chardet version: %s"%chardet.__version__)
            import six
            logging.debug( "six version: %s"%six.__version__)
            import webencodings
            logging.debug( "webencodings version: %s"%webencodings.VERSION)
        except:
            pass

        sendslugs = []

        for fic in fics:
            ficslug = FicSlug(fic)
            sendslugs.append(ficslug)

        template_values = dict(fics = sendslugs, nickname = user.nickname())
        path = os.path.join(os.path.dirname(__file__), 'allrecent.html')
        self.response.out.write(template.render(path, template_values))

webencodings

Character encoding aliases for legacy web content

BSD-2-Clause
Latest version published 8 years ago

Package Health Score

71 / 100
Full package analysis

Similar packages