vendor/pygments/plugin.py in pygmentize-0.0.2 vs vendor/pygments/plugin.py in pygmentize-0.0.3

- old
+ new

@@ -33,13 +33,17 @@ :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ -try: - import pkg_resources -except ImportError: - pkg_resources = None +import warnings + +with warnings.catch_warnings(): + warnings.simplefilter("ignore") + try: + import pkg_resources + except ImportError: + pkg_resources = None LEXER_ENTRY_POINT = 'pygments.lexers' FORMATTER_ENTRY_POINT = 'pygments.formatters' STYLE_ENTRY_POINT = 'pygments.styles' FILTER_ENTRY_POINT = 'pygments.filters'