git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b1bc08
)
- fix getpass() reference
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 17 Jan 2007 22:14:38 +0000
(22:14 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 17 Jan 2007 22:14:38 +0000
(22:14 +0000)
plcsh
patch
|
blob
|
history
diff --git
a/plcsh
b/plcsh
index
7c4b69a
..
605877c
100755
(executable)
--- a/
plcsh
+++ b/
plcsh
@@
-5,12
+5,13
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id: plcsh,v 1.
2 2007/01/11 05:28:4
9 mlhuang Exp $
+# $Id: plcsh,v 1.
3 2007/01/11 20:45:2
9 mlhuang Exp $
#
import os
import sys
from optparse import OptionParser
#
import os
import sys
from optparse import OptionParser
+from getpass import getpass
from traceback import print_exc
sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0])))
from traceback import print_exc
sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0])))
@@
-31,7
+32,7
@@
parser.add_option("--help", action = "help", help = "show this help message and
# If user is specified but password is not
if options.user is not None and options.password is None:
try:
# If user is specified but password is not
if options.user is not None and options.password is None:
try:
- options.password = getpass
.getpass
()
+ options.password = getpass()
except (EOFError, KeyboardInterrupt):
print
sys.exit(0)
except (EOFError, KeyboardInterrupt):
print
sys.exit(0)