##// END OF EJS Templates
Fix WinIDE crash (sys.stdin.encoding attribute does not exist there). Closes #235.
Ville M. Vainio -
Show More
@@ -6,7 +6,6 b' Requires Python 2.3 or newer.'
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 3005 2008-02-01 16:43:34Z vivainio $
10 """
9 """
11
10
12 #*****************************************************************************
11 #*****************************************************************************
@@ -377,7 +376,10 b' class InteractiveShell(object,Magic):'
377 # Get system encoding at startup time. Certain terminals (like Emacs
376 # Get system encoding at startup time. Certain terminals (like Emacs
378 # under Win32 have it set to None, and we need to have a known valid
377 # under Win32 have it set to None, and we need to have a known valid
379 # encoding to use in the raw_input() method
378 # encoding to use in the raw_input() method
380 self.stdin_encoding = sys.stdin.encoding or 'ascii'
379 try:
380 self.stdin_encoding = sys.stdin.encoding or 'ascii'
381 except AttributeError:
382 self.stdin_encoding = 'ascii'
381
383
382 # dict of things NOT to alias (keywords, builtins and some magics)
384 # dict of things NOT to alias (keywords, builtins and some magics)
383 no_alias = {}
385 no_alias = {}
General Comments 0
You need to be logged in to leave comments. Login now