[Python-bugs-list] [ python-Bugs-537998 ] windows getpass broken on python 2.2

noreply@sourceforge.net noreply@sourceforge.net
Mon, 01 Apr 2002 12:05:06 -0800


Bugs item #537998, was opened at 2002-04-01 15:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=537998&group_id=5470

Category: Windows
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Kelley (wc2so1)
Assigned to: Tim Peters (tim_one)
Summary: windows getpass broken on python 2.2

Initial Comment:
Windows 2000 Python 2.2

>>> import getpass
C:\Python22\lib\termios.py:7: DeprecationWarning: the
TERMIOS module is deprecated; please use termios
  DeprecationWarning)
>>> getpass.getpass()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\python22\lib\getpass.py", line 29, in
unix_getpass
    old = termios.tcgetattr(fd)     # a copy to save
AttributeError: 'module' object has no attribute
'tcgetattr'
>>>

I think the problem is that TERMIOS.py and termios.py
are the same thing on windows which causes a strange
Deprecation warning.  Python 2.1 used to fail on import
of termios

C:\Documents and Settings\bkelley\My
Documents\Downloads\Webware>python
Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import termios
C:\Python22\lib\termios.py:7: DeprecationWarning: the
TERMIOS module is deprecated; please use termios
  DeprecationWarning)

anyway, TERMIOS.py should probably not be installed on
windows.  This should be removed from 2.2.1c2
Brian


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=537998&group_id=5470