mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Oops, didn't think about daemons.
This commit is contained in:
parent
ed63bc5435
commit
a904f0e8d2
@ -49,10 +49,13 @@ import string
|
|||||||
# Stupid printing on import...
|
# Stupid printing on import...
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
try:
|
try:
|
||||||
|
# We used to use sys.__stdout__ here, but that caused problems with
|
||||||
|
# daemonization, since sys.stdout is replaced with a StringIO.
|
||||||
|
original = sys.stdout
|
||||||
sys.stdout = StringIO()
|
sys.stdout = StringIO()
|
||||||
import this
|
import this
|
||||||
finally:
|
finally:
|
||||||
sys.stdout = sys.__stdout__
|
sys.stdout = original
|
||||||
|
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
|
Loading…
Reference in New Issue
Block a user