Update of /cvsroot/pydev/org.python.pydev/PySrc/pydev_sitecustomize
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10036/PySrc/pydev_sitecustomize
Modified Files:
sitecustomize.py
Log Message:
Synching with aptana svn repo for release 1.3.22 (see http://pydev.sourceforge.net/developers.html)
Index: sitecustomize.py
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/PySrc/pydev_sitecustomize/sitecustomize.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** sitecustomize.py 29 Jun 2008 23:11:22 -0000 1.3
--- sitecustomize.py 3 Oct 2008 00:43:55 -0000 1.4
***************
*** 6,10 ****
- change raw_input() and input() to also remove any trailing \r
'''
-
DEBUG = 0 #0 or 1 because of jython
import os
--- 6,9 ----
***************
*** 129,133 ****
return ret
raw_input.__doc__ = original_raw_input.__doc__
!
def input(prompt=''):
#input must also be rebinded for using the new raw_input defined
--- 128,132 ----
return ret
raw_input.__doc__ = original_raw_input.__doc__
!
def input(prompt=''):
#input must also be rebinded for using the new raw_input defined
***************
*** 143,144 ****
--- 142,158 ----
import traceback;traceback.print_exc() #@Reimport
+
+ try:
+ #The original getpass doesn't work from the eclipse console, so, let's put a replacement
+ #here (note that it'll not go into echo mode in the console, so, what' the user writes
+ #will actually be seen)
+ import getpass
+ def pydev_getpass(msg='Password: '):
+ return raw_input(msg)
+
+ getpass.getpass = pydev_getpass
+ except:
+ #Don't report errors at this stage
+ if DEBUG:
+ import traceback;traceback.print_exc() #@Reimport
+
|