Description: Remove dependency on the Python profiler
 This patch removes the dependency on the Python profile present in
 manlifter, which keeps doclifter out of contrib.
Author: Jeff Licquia <licquia@debian.org>
Forwarded: not-needed
Last-Update: 2011-02-19

Index: doclifter-2.11/manlifter
===================================================================
--- doclifter-2.11.orig/manlifter	2013-06-07 20:07:27.000000000 +0000
+++ doclifter-2.11/manlifter	2013-06-07 20:07:27.000000000 +0000
@@ -4,7 +4,10 @@
 # Sees all files in section 1 through 8 by default.
 
 import sys, os, getopt, signal, time, re, commands, cStringIO, stat
-import hotshot, hotshot.stats
+try:
+    import hotshot, hotshot.stats
+except ImportError:
+    hotshot = False
 
 mandir = "/usr/share/man"
 patchdir = os.path.abspath("prepatch")
@@ -695,7 +698,7 @@
     # Gather options
     (options, arguments) = getopt.getopt(sys.argv[1:], "d:ef:hI:mMp:Pqs:SvwX:")
     # Do the real work
-    if "-P" in sys.argv:
+    if "-P" in sys.argv and hotshot:
         prof = hotshot.Profile("manlifter.prof")
         prof.runcall(doclifter_driver, options, arguments)
         prof.close()
