diff options
author | Dag Wieers <dag@wieers.com> | 2017-05-18 19:43:35 +0200 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2017-05-18 18:43:35 +0100 |
commit | c4a7f64c0219123cc81df8ab6267cd5bdc10e4ff (patch) | |
tree | ba36a9ac4be9fb127fd189bbe570454c4eb98ff9 /lib/ansible/galaxy/token.py | |
parent | 6f6bdf79140b8cdfed1004d055d9b87d0c65bdfc (diff) | |
download | ansible-c4a7f64c0219123cc81df8ab6267cd5bdc10e4ff.tar.gz |
ansible/galaxy: PEP8 compliancy (#24696)
- Make PEP8 compliant
Diffstat (limited to 'lib/ansible/galaxy/token.py')
-rw-r--r-- | lib/ansible/galaxy/token.py | 9 |
1 files changed, 4 insertions, 5 deletions
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) |