From 6c81eb908455f4cc6d875bae39045b48a3d249f7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 1 Sep 2003 08:05:14 +0000 Subject: [PATCH] Made 'import this' not print. --- plugins/FunCommands.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 45503bae7..88b139962 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -44,7 +44,6 @@ import sys import new import md5 import sha -import this import time import math import cmath @@ -57,6 +56,12 @@ import telnetlib import threading import mimetypes +# Stupid printing on import... +from cStringIO import StringIO +sys.stdout = StringIO() +import this +sys.stdout = sys.__stdout__ + #import conf import debug import utils