~oddbloke/cloud-init/fix-gce-az

« back to all changes in this revision

Viewing changes to tools/validate-yaml.py

  • Committer: Scott Moser
  • Date: 2015-05-01 09:38:56 UTC
  • Revision ID: smoser@ubuntu.com-20150501093856-9ogq51r7w33sqvqa
fix 'Make pyflakes'

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
"""
5
5
 
6
6
import sys
7
 
 
8
7
import yaml
9
8
 
10
9
 
17
16
            yaml.safe_load(fh.read())
18
17
            fh.close()
19
18
            sys.stdout.write(" - ok\n")
20
 
        except Exception, e:
 
19
        except Exception as e:
21
20
            sys.stdout.write(" - bad (%s)\n" % (e))
22
21
            bads += 1
23
22
    if bads > 0: