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

--- doclifter-2.6.orig/manlifter
+++ doclifter-2.6/manlifter
@@ -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")
@@ -659,7 +662,7 @@ if __name__ == "__main__":
     # Gather options
     (options, arguments) = getopt.getopt(sys.argv[1:], "d:ef:hI:mp:Pqs:Svw")
     # 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()
