summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-29 06:19:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-29 06:19:22 (GMT)
commit15f74f44d8dda1b4684baa605a81f5a4c725036d (patch)
tree856597505b0a81e7d051ff7c34c113d694fa6140 /Lib
parentac4bdcc80e986bdd5b9d10ab0bce35aabb790a3e (diff)
parent669ff66c326a0e5e0bed0619b691725f76ac3d04 (diff)
downloadcpython-15f74f44d8dda1b4684baa605a81f5a4c725036d.zip
cpython-15f74f44d8dda1b4684baa605a81f5a4c725036d.tar.gz
cpython-15f74f44d8dda1b4684baa605a81f5a4c725036d.tar.bz2
Merge heads
Diffstat (limited to 'Lib')
-rw-r--r--Lib/getpass.py2
-rw-r--r--Lib/pickletools.py2
-rwxr-xr-xLib/smtplib.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 7c4e976..be51121 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -99,7 +99,7 @@ def win_getpass(prompt='Password: ', stream=None):
"""Prompt for password with echo off, using Windows getch()."""
if sys.stdin is not sys.__stdin__:
return fallback_getpass(prompt, stream)
- import msvcrt
+
for c in prompt:
msvcrt.putwch(c)
pw = ""
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index cf5df41..155bd5b 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -2793,7 +2793,7 @@ def _test():
return doctest.testmod()
if __name__ == "__main__":
- import sys, argparse
+ import argparse
parser = argparse.ArgumentParser(
description='disassemble one or more pickle files')
parser.add_argument(
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 4fe6aaf..7e34875 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -1080,8 +1080,6 @@ class LMTP(SMTP):
# Test the sendmail method, which tests most of the others.
# Note: This always sends to localhost.
if __name__ == '__main__':
- import sys
-
def prompt(prompt):
sys.stdout.write(prompt + ": ")
sys.stdout.flush()