diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:34:19 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:34:19 -0500 |
commit | c33eedb47b2b22c797051da197fd80e74f1db179 (patch) | |
tree | f1958cfc36e53fc406fea4963b1305f760570847 /cloudinit/SshUtil.py | |
parent | 89eafa0a6c1a28331b3b3c59ba94803052c63583 (diff) | |
download | vyos-cloud-init-c33eedb47b2b22c797051da197fd80e74f1db179.tar.gz vyos-cloud-init-c33eedb47b2b22c797051da197fd80e74f1db179.zip |
[PATCH 2/4] Fix pylint conventions C0322 (operator not preceded by a space)
From: Juerg Haefliger <juerg.haefliger@hp.com>
Diffstat (limited to 'cloudinit/SshUtil.py')
-rw-r--r-- | cloudinit/SshUtil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/SshUtil.py b/cloudinit/SshUtil.py index 125ca618..198f7206 100644 --- a/cloudinit/SshUtil.py +++ b/cloudinit/SshUtil.py @@ -18,7 +18,7 @@ class AuthKeyEntry(): line_in = "" def __init__(self, line, def_opt=None): - line=line.rstrip("\n\r") + line = line.rstrip("\n\r") self.line_in = line if line.startswith("#") or line.strip() == "": self.is_comment = True @@ -184,13 +184,13 @@ if __name__ == "__main__": def parse_ssh_config(fname="/etc/ssh/sshd_config"): ret = { } - fp=open(fname) + fp = open(fname) for l in fp.readlines(): l = l.strip() if not l or l.startswith("#"): continue key,val = l.split(None,1) - ret[key]=val + ret[key] = val fp.close() return(ret) |