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

Skip to content

Commit f9f4881

Browse files
committed
Remove two redundant statements (PyChecker).
1 parent bfbc18d commit f9f4881

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/getpass.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def unix_getpass(prompt='Password: '):
2626
except:
2727
return default_getpass(prompt)
2828

29-
getpass = default_getpass
3029
old = termios.tcgetattr(fd) # a copy to save
3130
new = old[:]
3231

@@ -70,7 +69,6 @@ def default_getpass(prompt='Password: '):
7069
def _raw_input(prompt=""):
7170
# A raw_input() replacement that doesn't save the string in the
7271
# GNU readline history.
73-
import sys
7472
prompt = str(prompt)
7573
if prompt:
7674
sys.stdout.write(prompt)

0 commit comments

Comments
 (0)