summaryrefslogtreecommitdiff
path: root/paramiko/hostkeys.py
diff options
context:
space:
mode:
authorDylan Thacker-Smith <Dylan.Smith@shopify.com>2014-09-22 00:18:07 -0400
committerJeff Forcier <jeff@bitprophet.org>2015-11-03 13:29:57 -0800
commit52ba29d62796215d417716802808f8702b673baf (patch)
tree0879dd273e8f138a60475146239c10bbbd700a53 /paramiko/hostkeys.py
parent6f773cef69f2a70e51d44affd0e592edc099cc11 (diff)
downloadparamiko-52ba29d62796215d417716802808f8702b673baf.tar.gz
Fix line number for known_hosts error messages.
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 7c6a5aa5..1a5031d1 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -89,7 +89,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