Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 860c8a4

Browse files
committed
merge 3.5 (#25502)
2 parents 2e0e18b + 669ff66 commit 860c8a4

5 files changed

Lines changed: 2 additions & 7 deletions

File tree

Lib/getpass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def win_getpass(prompt='Password: ', stream=None):
9999
"""Prompt for password with echo off, using Windows getch()."""
100100
if sys.stdin is not sys.__stdin__:
101101
return fallback_getpass(prompt, stream)
102-
import msvcrt
102+
103103
for c in prompt:
104104
msvcrt.putwch(c)
105105
pw = ""

Lib/pickletools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ def _test():
27942794
return doctest.testmod()
27952795

27962796
if __name__ == "__main__":
2797-
import sys, argparse
2797+
import argparse
27982798
parser = argparse.ArgumentParser(
27992799
description='disassemble one or more pickle files')
28002800
parser.add_argument(

Lib/smtplib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,8 +1080,6 @@ def connect(self, host='localhost', port=0, source_address=None):
10801080
# Test the sendmail method, which tests most of the others.
10811081
# Note: This always sends to localhost.
10821082
if __name__ == '__main__':
1083-
import sys
1084-
10851083
def prompt(prompt):
10861084
sys.stdout.write(prompt + ": ")
10871085
sys.stdout.flush()

PC/testpy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
a PC, you should add the dos_8x3 directory to your PYTHONPATH.""")
1919
sys.exit(1)
2020

21-
import os
22-
2321
for dir in sys.path:
2422
file = os.path.join(dir, "os.py")
2523
if os.path.isfile(file):

Parser/asdl_c.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,6 @@ def main(srcfile, dump_module=False):
12891289
f.close()
12901290

12911291
if __name__ == "__main__":
1292-
import sys
12931292
import getopt
12941293

12951294
INC_DIR = ''

0 commit comments

Comments
 (0)