##// END OF EJS Templates
typing: disable warnings for a couple of Windows specific attributes...
Matt Harbison -
r48217:f7740404 default
parent child Browse files
Show More
@@ -202,7 +202,7 b' def get_password():'
202 """
202 """
203 pw = ""
203 pw = ""
204 while True:
204 while True:
205 c = msvcrt.getwch()
205 c = msvcrt.getwch() # pytype: disable=module-attr
206 if c == '\r' or c == '\n':
206 if c == '\r' or c == '\n':
207 break
207 break
208 if c == '\003':
208 if c == '\003':
@@ -211,8 +211,8 b' def get_password():'
211 pw = pw[:-1]
211 pw = pw[:-1]
212 else:
212 else:
213 pw = pw + c
213 pw = pw + c
214 msvcrt.putwch('\r')
214 msvcrt.putwch('\r') # pytype: disable=module-attr
215 msvcrt.putwch('\n')
215 msvcrt.putwch('\n') # pytype: disable=module-attr
216 return encoding.strtolocal(pw)
216 return encoding.strtolocal(pw)
217
217
218
218
General Comments 0
You need to be logged in to leave comments. Login now