[Buildbot-commits] [buildbot/buildbot] 084342: fix anomalous-backslash-in-string (W1401) pylint w...

GitHub noreply at github.com
Thu Sep 26 11:35:29 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: 08434242ada43c900affbca161a6cce3481cb16f
      https://github.com/buildbot/buildbot/commit/08434242ada43c900affbca161a6cce3481cb16f
  Author: Olof Johansson <olofjn at axis.com>
  Date:   2013-09-17 (Tue, 17 Sep 2013)

  Changed paths:
    M common/pylintrc
    M master/buildbot/buildslave/base.py
    M master/buildbot/changes/mail.py
    M master/buildbot/process/metrics.py
    M master/buildbot/process/properties.py
    M master/buildbot/scripts/runner.py
    M master/buildbot/status/builder.py
    M master/buildbot/status/mail.py
    M master/buildbot/status/tinderbox.py
    M master/buildbot/status/web/base.py
    M master/buildbot/status/web/status_json.py
    M master/buildbot/steps/master.py
    M master/buildbot/steps/package/deb/pbuilder.py
    M master/buildbot/steps/package/rpm/rpmspec.py
    M master/buildbot/steps/shell.py
    M master/buildbot/steps/source/svn.py
    M master/buildbot/test/unit/test_changes_bonsaipoller.py
    M master/buildbot/test/unit/test_status_web_hooks_gitorious.py
    M master/buildbot/test/unit/test_status_web_hooks_googlecode.py
    M master/buildbot/test/unit/test_steps_mswin.py
    M master/buildbot/test/unit/test_steps_source_bzr.py
    M master/buildbot/test/unit/test_steps_source_git.py
    M master/buildbot/test/unit/test_steps_source_mercurial.py
    M master/buildbot/test/unit/test_steps_source_svn.py
    M master/buildbot/util/__init__.py
    M slave/buildslave/commands/p4.py
    M slave/buildslave/commands/repo.py
    M slave/buildslave/runprocess.py
    M slave/buildslave/scripts/runner.py

  Log Message:
  -----------
  fix anomalous-backslash-in-string (W1401) pylint warning

This warning is often triggered by regular expressions, and prefixing
to the open quotation mark will make python leave any escape sequences
alone, e.g.:

 - re.compile("\w+")
 + re.compile(r"\w+")

This solution is not specific for regular expressions, it can be applied
to any string that contains backslashes that python should not interpret.

This commit also enables the warning in common/pylintrc.


  Commit: dbc69345daf1fa166ba22d9efa1fde5cedc760ef
      https://github.com/buildbot/buildbot/commit/dbc69345daf1fa166ba22d9efa1fde5cedc760ef
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2013-09-26 (Thu, 26 Sep 2013)

  Changed paths:
    M common/pylintrc
    M master/buildbot/buildslave/base.py
    M master/buildbot/changes/mail.py
    M master/buildbot/process/metrics.py
    M master/buildbot/process/properties.py
    M master/buildbot/scripts/runner.py
    M master/buildbot/status/builder.py
    M master/buildbot/status/mail.py
    M master/buildbot/status/tinderbox.py
    M master/buildbot/status/web/base.py
    M master/buildbot/status/web/status_json.py
    M master/buildbot/steps/master.py
    M master/buildbot/steps/package/deb/pbuilder.py
    M master/buildbot/steps/package/rpm/rpmspec.py
    M master/buildbot/steps/shell.py
    M master/buildbot/steps/source/svn.py
    M master/buildbot/test/unit/test_changes_bonsaipoller.py
    M master/buildbot/test/unit/test_status_web_hooks_gitorious.py
    M master/buildbot/test/unit/test_status_web_hooks_googlecode.py
    M master/buildbot/test/unit/test_steps_mswin.py
    M master/buildbot/test/unit/test_steps_source_bzr.py
    M master/buildbot/test/unit/test_steps_source_git.py
    M master/buildbot/test/unit/test_steps_source_mercurial.py
    M master/buildbot/test/unit/test_steps_source_svn.py
    M master/buildbot/util/__init__.py
    M slave/buildslave/commands/p4.py
    M slave/buildslave/commands/repo.py
    M slave/buildslave/runprocess.py
    M slave/buildslave/scripts/runner.py

  Log Message:
  -----------
  Merge branch 'topic/pylint-anomalous-backslash-in-string' of git://github.com/olof/buildbot


Compare: https://github.com/buildbot/buildbot/compare/419230cdc0e5...dbc69345daf1


More information about the Commits mailing list