~wesley-wiedenmeier/curtin/reporting-cleanup-rebase

« back to all changes in this revision

Viewing changes to curtin/commands/curthooks.py

  • Committer: Scott Moser
  • Date: 2016-01-07 16:21:29 UTC
  • mto: This revision was merged to the branch mainline in revision 335.
  • Revision ID: smoser@ubuntu.com-20160107162129-fkcpleskcb0prxm1
add running of pylint for python27 and python34

This adds the running of pylint in '--errors-only' mode for
both python27 and python34.  

It finds a couple legitimate issues, and I've included fixes here for those.
There is one work around for an issue i opened at
 https://github.com/PyCQA/pylint/issues/769

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
            content='Acquire::HTTP::Proxy "%s";\n' % cfg['apt_proxy'])
101
101
    else:
102
102
        if os.path.isfile(proxy_cfg_path):
103
 
            os.path.unlink(proxy_cfg_path)
 
103
            os.unlink(proxy_cfg_path)
104
104
 
105
105
    # cfg['apt_mirrors']
106
106
    # apt_mirrors: