http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10065
Revision: 10065 Author: xqt Date: 2012-03-30 20:10:32 +0000 (Fri, 30 Mar 2012) Log Message: ----------- default for stdin, stdout, stderr, argv first. Bugfix for revision 10043 that causes the win32_unicode.py module to not initialize stdin, stdout, and stderr when run in IDLE and then cause errors in terminal_interface_win32.py
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/win32_unicode.py
Modified: trunk/pywikipedia/userinterfaces/win32_unicode.py =================================================================== --- trunk/pywikipedia/userinterfaces/win32_unicode.py 2012-03-30 20:06:51 UTC (rev 10064) +++ trunk/pywikipedia/userinterfaces/win32_unicode.py 2012-03-30 20:10:32 UTC (rev 10065) @@ -21,6 +21,10 @@ ################################################
import sys +stdin = sys.stdin +stdout = sys.stdout +stderr = sys.stderr +argv = sys.argv if sys.platform == "win32": import codecs from ctypes import WINFUNCTYPE, windll, POINTER, byref, c_int, \ @@ -254,9 +258,3 @@ if arg == u'-c': argv[0] = u'-c' break - -else: - stdin = sys.stdin - stdout = sys.stdout - stderr = sys.stderr - argv = sys.argv \ No newline at end of file
pywikipedia-svn@lists.wikimedia.org