aboutsummaryrefslogtreecommitdiff
path: root/paramiko/hostkeys.py
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-02-07 21:19:28 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-07 21:19:28 +0000
commit31b2fd0709f259961253b9cdc875ce7827abaa68 (patch)
tree863b7f1fe851d7183419916248591537a4b8b6c5 /paramiko/hostkeys.py
parentbf855e6da326dba0c46f005eedc9f390c6c3b206 (diff)
downloadpython-paramiko-upstream.tar
python-paramiko-upstream.tar.gz
Imported Upstream version 1.16.0upstream/1.16.0upstream
Diffstat (limited to 'paramiko/hostkeys.py')
-rw-r--r--paramiko/hostkeys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index c7e1f72..38ac866 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -93,7 +93,7 @@ class HostKeys (MutableMapping):
:raises IOError: if there was an error reading the file
"""
with open(filename, 'r') as f:
- for lineno, line in enumerate(f):
+ for lineno, line in enumerate(f, 1):
line = line.strip()
if (len(line) == 0) or (line[0] == '#'):
continue