ThirdParty/Pygments/pygments/formatters/img.py

changeset 2426
da76c71624de
parent 1705
b0fbc9300f2b
child 2525
8b507a9a2d40
--- a/ThirdParty/Pygments/pygments/formatters/img.py	Sun Feb 17 19:05:40 2013 +0100
+++ b/ThirdParty/Pygments/pygments/formatters/img.py	Sun Feb 17 19:07:15 2013 +0100
@@ -5,12 +5,11 @@
 
     Formatter for Pixmap output.
 
-    :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
+    :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 """
 
 import sys
-from subprocess import getstatusoutput
 
 from pygments.formatter import Formatter
 from pygments.util import get_bool_opt, get_int_opt, \
@@ -73,6 +72,7 @@
             self._create_nix()
 
     def _get_nix_font_path(self, name, style):
+        from subprocess import getstatusoutput
         exit, out = getstatusoutput('fc-list "%s:style=%s" file' %
                                     (name, style))
         if not exit:

eric ide

mercurial