Kaydet (Commit) f9f48812 authored tarafından Guido van Rossum's avatar Guido van Rossum

Remove two redundant statements (PyChecker).

üst bfbc18db
...@@ -26,7 +26,6 @@ def unix_getpass(prompt='Password: '): ...@@ -26,7 +26,6 @@ def unix_getpass(prompt='Password: '):
except: except:
return default_getpass(prompt) return default_getpass(prompt)
getpass = default_getpass
old = termios.tcgetattr(fd) # a copy to save old = termios.tcgetattr(fd) # a copy to save
new = old[:] new = old[:]
...@@ -70,7 +69,6 @@ def default_getpass(prompt='Password: '): ...@@ -70,7 +69,6 @@ def default_getpass(prompt='Password: '):
def _raw_input(prompt=""): def _raw_input(prompt=""):
# A raw_input() replacement that doesn't save the string in the # A raw_input() replacement that doesn't save the string in the
# GNU readline history. # GNU readline history.
import sys
prompt = str(prompt) prompt = str(prompt)
if prompt: if prompt:
sys.stdout.write(prompt) sys.stdout.write(prompt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment