Commits

Georg Brandl committed db97604

Closes #772: image formatter: move Unix-specific import of commands.getstatusoutput() to Unix-specific method

Comments (0)

Files changed (1)

pygments/formatters/img.py

 """
 
 import sys
-from commands import getstatusoutput
 
 from pygments.formatter import Formatter
 from pygments.util import get_bool_opt, get_int_opt, \
             self._create_nix()
 
     def _get_nix_font_path(self, name, style):
+        from commands import getstatusoutput
         exit, out = getstatusoutput('fc-list "%s:style=%s" file' %
                                     (name, style))
         if not exit: