# HG changeset patch # User Alexandre Fayolle # Date 1272650297 -7200 # Node ID 7b2e9f774028849d02c17f0a0379eaaf05c0cbb9 # Parent 269dcd14b92c15dc7438285e4ff276036de875f3 ignore annoying warnings about pygments already being imported and stuff being added to python path diff -r 269dcd14b92c -r 7b2e9f774028 __init__.py --- a/__init__.py Fri Apr 30 19:07:06 2010 +0200 +++ b/__init__.py Fri Apr 30 19:58:17 2010 +0200 @@ -21,6 +21,13 @@ """ __docformat__ = "restructuredtext en" +# ignore the pygments UserWarnings +import warnings +warnings.filterwarnings('ignore', category=UserWarning, + message='.*was already imported', + module='.*pygments') + + import __builtin__ # '_' is available in builtins to mark internationalized string but should # not be used to do the actual translation