Permalink
Browse files

use getpass() for dealing with passwords

  • Loading branch information...
1 parent 941d0f6 commit f94173255ebb2a0fb897cac1a621f246687c6941 @harrisony harrisony committed Dec 8, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/test_foursquare.py
View
3 tests/test_foursquare.py
@@ -1,5 +1,6 @@
import unittest
import time
+from getpass import getpass
import foursquare
@@ -103,6 +104,6 @@ def find_if(objs, pred):
if __name__ == '__main__':
username = raw_input('Enter your foursquare username: ')
- password = raw_input('Enter your foursquare password: ')
+ password = getpass('Enter your foursquare password: ')
unittest.main()

0 comments on commit f941732

Please sign in to comment.