From c4a7f64c0219123cc81df8ab6267cd5bdc10e4ff Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 18 May 2017 19:43:35 +0200 Subject: ansible/galaxy: PEP8 compliancy (#24696) - Make PEP8 compliant --- lib/ansible/galaxy/token.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/ansible/galaxy/token.py') diff --git a/lib/ansible/galaxy/token.py b/lib/ansible/galaxy/token.py index a089597ddb..4b09acc998 100644 --- a/lib/ansible/galaxy/token.py +++ b/lib/ansible/galaxy/token.py @@ -46,9 +46,9 @@ class GalaxyToken(object): display.vvv('Opened %s' % self.file) return open(self.file, 'r') # config.yml not found, create and chomd u+rw - f = open(self.file,'w') + f = open(self.file, 'w') f.close() - os.chmod(self.file,S_IRUSR|S_IWUSR) # owner has +rw + os.chmod(self.file, S_IRUSR | S_IWUSR) # owner has +rw display.vvv('Created %s' % self.file) return open(self.file, 'r') @@ -60,6 +60,5 @@ class GalaxyToken(object): return self.config.get('token', None) def save(self): - with open(self.file,'w') as f: - yaml.safe_dump(self.config,f,default_flow_style=False) - + with open(self.file, 'w') as f: + yaml.safe_dump(self.config, f, default_flow_style=False) -- cgit v1.2.1