git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix typo
[enigma2.git]
/
lib
/
python
/
Tools
/
RedirectOutput.py
1
import sys
2
from enigma import ePythonOutput
3
4
class EnigmaOutput:
5
def write(self, data):
6
if type(data) is unicode:
7
data = data.encode("UTF-8")
8
ePythonOutput(data)
9
10
def flush():
11
pass
12
13
sys.stdout = sys.stderr = EnigmaOutput()