diff --git a/sharepoint/cmd.py b/sharepoint/cmd.py index 0a31202..e63715a 100644 --- a/sharepoint/cmd.py +++ b/sharepoint/cmd.py @@ -61,7 +61,9 @@ def main(): username, password = options.username, options.password if not username: - username = raw_input("Username: ") + sys.stdout.write("Username: ") + sys.stdout.flush() + username = sys.stdin.readline().strip() if not password: from getpass import getpass password = getpass()