summaryrefslogtreecommitdiff
path: root/pygments/formatters/img.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-19 11:37:00 +0200
committerGeorg Brandl <georg@python.org>2012-08-19 11:37:00 +0200
commit906042e7728e5be2826bb0aac106660975e3e7ab (patch)
tree1d1feffe5405ebc3b4b1c4ddaacbe5618ebf84f6 /pygments/formatters/img.py
parentcfeb9b85078d8b3a639c7c6bd2c632e568a794d7 (diff)
downloadpygments-906042e7728e5be2826bb0aac106660975e3e7ab.tar.gz
Closes #772: image formatter: move Unix-specific import of commands.getstatusoutput() to Unix-specific method
Diffstat (limited to 'pygments/formatters/img.py')
-rw-r--r--pygments/formatters/img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
index e2267f5e..609aa54c 100644
--- a/pygments/formatters/img.py
+++ b/pygments/formatters/img.py
@@ -10,7 +10,6 @@
"""
import sys
-from commands import getstatusoutput
from pygments.formatter import Formatter
from pygments.util import get_bool_opt, get_int_opt, \
@@ -73,6 +72,7 @@ class FontManager(object):
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: