Skip to content

Commit

Permalink
Do not display password when entering it for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
xinan committed Apr 21, 2015
1 parent e27f48c commit ea904d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examdownloader-cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import subprocess
import sys
import getpass
import examdownloader

module = 'CS1010S'
Expand All @@ -15,8 +16,7 @@ def startDownload(args):
module = args[0]
username = args[1]

print('Enter password for ' + username + ': ')
password = raw_input()
password = getpass.getpass('Enter password for ' + username + ': ')
ed = examdownloader.examdownloader('CLI')


Expand Down

1 comment on commit ea904d6

@xinan
Copy link
Member Author

@xinan xinan commented on ea904d6 Apr 21, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please # to comment.