Use pysco when UnBinarying, if available

This commit is contained in:
Marshall T. Vandegrift 2008-07-26 15:53:26 -04:00
parent ac819eec9d
commit 97b5fc46ba

View File

@ -797,5 +797,12 @@ def main(args=sys.argv):
print _('OEB ebook created in'), opts.output_dir
return 0
try:
import psyco
psyco.bind(read_utf8_char)
psyco.bind(UnBinary.binary_to_text)
except ImportError:
pass
if __name__ == '__main__':
sys.exit(main())