Skip to content

Commit aa678e6

Browse files
committed
Merge pull request egrcc#35 from LuoZijun/patch-12
Update auth.py
2 parents 2e66047 + f6a3dc3 commit aa678e6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

auth.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def download_captcha():
9696
os.system("open %s &" % image_name )
9797
else:
9898
Logging.info(u"我们无法探测你的作业系统,请自行打开验证码 %s 文件,并输入验证码。" % os.path.join(os.getcwd(), image_name) )
99-
100-
captcha_code = raw_input( termcolor.colored("请输入验证码: ", "cyan") )
99+
100+
sys.stdout.write(termcolor.colored(u"请输入验证码: ", "cyan") )
101+
captcha_code = raw_input( )
101102
return captcha_code
102103

103104
def search_xsrf():
@@ -209,9 +210,10 @@ def login(account=None, password=None):
209210
if account == None:
210211
(account, password) = read_account_from_config_file()
211212
if account == None:
212-
account = raw_input("请输入登录帐号: ")
213-
password = raw_input("请输入登录密码: ")
214-
213+
sys.stdout.write(u"请输入登录账号: ")
214+
account = raw_input()
215+
sys.stdout.write(u"请输入登录密码: ")
216+
password = raw_input()
215217

216218
form_data = build_form(account, password)
217219
"""

0 commit comments

Comments
 (0)