FAQ
I wrote these codes pieces:

try:
import termios, TERMIOS
except ImportError:
try:
import msvcrt
except ImportError:
try:
from EasyDialogs import AskPassword
except ImportError:
getpass = default_getpass
else:
getpass = AskPassword
else:
getpass = win_getpass
else:
getpass = unix_getpass


When running I got the error warnings:

/usr/lib/python2.3/TERMIOS.py:7: DeprecationWarning: the TERMIOS module is
deprecated; please use termios
DeprecationWarning)
Traceback (most recent call last):
File "t2.py", line 18, in ?
getpass = unix_getpass
NameError: name 'unix_getpass' is not defined


Can you tell me what're there warnings and how to avoid them?Thanks!
<BR><BR><BR>**************************************<BR> AOL now offers free
email to everyone. Find out more about what's free from AOL at
http://www.aol.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-list/attachments/20070303/21497843/attachment.html

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedMar 4, '07 at 3:57a
activeMar 4, '07 at 3:57a
posts1
users1
websitepython.org

1 user in discussion

Memcached: 1 post

People

Translate

site design / logo © 2022 Grokbase