do not repoen stdin, stderr, stdout

alfred-data
Nils Schneider 2013-03-11 09:24:57 +01:00
parent ec03ffe810
commit 9eb7da519b
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ import locale # Ensures that subsequent open()s
locale.getpreferredencoding = lambda: 'UTF-8' # are UTF-8 encoded.
import sys
sys.stdin = open('/dev/stdin', 'r')
sys.stdout = open('/dev/stdout', 'w')
sys.stderr = open('/dev/stderr', 'w')
#sys.stdin = open('/dev/stdin', 'r')
#sys.stdout = open('/dev/stdout', 'w')
#sys.stderr = open('/dev/stderr', 'w')
parser = argparse.ArgumentParser()