running warnings
memcached at aol.com
memcached at aol.com
Sat Mar 3 22:57:12 EST 2007
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>
More information about the Python-list
mailing list