~ubuntu-branches/ubuntu/quantal/ubuntuone-dev-tools/quantal

« back to all changes in this revision

Viewing changes to bin/u1lint

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-06-26 17:19:57 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120626171957-jt2i6d36sbghwhgj
Tags: 3.99.1-0ubuntu1
* New upstream release.
  - Avoid using /usr/bin/env python in scripts. (LP: #984089)
  - Deafult to more appropriate reactor on OS X and Windows.
  - Fix clean-up of UNIX domain sockets on OS X.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
 
 
3
 
# u1lint: Wrapper script for pylint or pyflakes
4
 
#
5
 
# Author: Rodney Dawes <rodney.dawes@canonical.com>
6
2
#
7
3
# Copyright 2009-2012 Canonical Ltd.
8
4
#
147
143
        config.read([PYLINTRC])
148
144
 
149
145
        # pylint: disable=E1103
150
 
        return [os.path.join(SRCDIR, item) for item in \
 
146
        return [os.path.join(SRCDIR, item) for item in
151
147
                    config.get("MASTER", "ignore").split(",")]
152
148
    except (TypeError, ConfigParser.NoOptionError):
153
149
        return []
217
213
    failed = False
218
214
    ignored = _read_pylintrc_ignored()
219
215
    if options.ignored:
220
 
        ignored.extend([os.path.join(SRCDIR, item) for item in \
 
216
        ignored.extend([os.path.join(SRCDIR, item) for item in
221
217
                            map(str.strip, options.ignored.split(','))])
222
218
 
223
219
    if os.environ.get('USE_PYFLAKES'):