aboutsummaryrefslogtreecommitdiff
path: root/gitosis
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis')
-rw-r--r--gitosis/init.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitosis/init.py b/gitosis/init.py
index cb21cbd..2004ddd 100644
--- a/gitosis/init.py
+++ b/gitosis/init.py
@@ -20,10 +20,12 @@ from gitosis import app
# pylint: disable-msg=C0103
log = logging.getLogger('gitosis.init')
-def read_ssh_pubkey(fp=None): #pragma: no cover
+def read_ssh_pubkey(filename=None): #pragma: no cover
"""Read an SSH public key from stdin or file."""
- if fp is None:
+ if filename is None:
fp = sys.stdin
+ else:
+ fp = file(filename)
line = fp.readline()
return line